Skip to content

Commit 055cee0

Browse files
authored
Merge pull request #37 from fastruby/feature/status-output-version-number
Feature/status output version number
2 parents afc1665 + 6d34d01 commit 055cee0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/skunk/cli/commands/status_reporter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class StatusReporter < RubyCritic::Command::StatusReporter
2020
Modules Analysed: <%= analysed_modules_count %>
2121
StinkScore Average: <%= stink_score_average %>
2222
<% if worst %>Worst StinkScore: <%= worst.stink_score %> (<%= worst.pathname %>)<% end %>
23+
24+
Generated with Skunk v<%= Skunk::VERSION %>
2325
TEMPL
2426
)
2527

test/lib/skunk/cli/commands/status_reporter_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def analysed_module.churn
3232
end
3333

3434
it "reports the StinkScore" do
35-
_(reporter.update_status_message).must_equal output
35+
_(reporter.update_status_message).must_include output
36+
_(reporter.update_status_message).must_include "Generated with Skunk v#{Skunk::VERSION}"
3637
end
3738
end
3839
end

test/test_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
require "minitest/autorun"
2020
require "minitest/pride"
2121
require "minitest/around/spec"
22+
require "skunk/rubycritic/analysed_module"
2223

2324
def context(*args, &block)
2425
describe(*args, &block)

0 commit comments

Comments
 (0)