diff --git a/lib/skunk/cli/commands/status_reporter.rb b/lib/skunk/cli/commands/status_reporter.rb index 2bd1906..a756478 100644 --- a/lib/skunk/cli/commands/status_reporter.rb +++ b/lib/skunk/cli/commands/status_reporter.rb @@ -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 ) diff --git a/test/lib/skunk/cli/commands/status_reporter_test.rb b/test/lib/skunk/cli/commands/status_reporter_test.rb index ada59a6..dc3ebaf 100644 --- a/test/lib/skunk/cli/commands/status_reporter_test.rb +++ b/test/lib/skunk/cli/commands/status_reporter_test.rb @@ -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 diff --git a/test/test_helper.rb b/test/test_helper.rb index 0acdd85..c81dcef 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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)