Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/skunk/cli/commands/status_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class StatusReporter < RubyCritic::Command::StatusReporter
Modules Analysed: <%= analysed_modules_count %>
StinkScore Average: <%= stink_score_average %>
<% if worst %>Worst StinkScore: <%= worst.stink_score %> (<%= worst.pathname %>)<% end %>

Generated with Skunk v<%= Skunk::VERSION %>
TEMPL
)

Expand Down
3 changes: 2 additions & 1 deletion test/lib/skunk/cli/commands/status_reporter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def analysed_module.churn
end

it "reports the StinkScore" do
_(reporter.update_status_message).must_equal output
_(reporter.update_status_message).must_include output
_(reporter.update_status_message).must_include "Generated with Skunk v#{Skunk::VERSION}"
end
end
end
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
require "minitest/autorun"
require "minitest/pride"
require "minitest/around/spec"
require "skunk/rubycritic/analysed_module"

def context(*args, &block)
describe(*args, &block)
Expand Down