diff --git a/lib/chusaku.rb b/lib/chusaku.rb index f63e7bb..5196cad 100644 --- a/lib/chusaku.rb +++ b/lib/chusaku.rb @@ -200,10 +200,10 @@ def output_results # # @return [String] Copy to be outputted to user def output_copy - return "Nothing to annotate." if @changed_files.empty? + return "Controller files unchanged." if @changed_files.empty? copy = changes_copy - copy += "\nChusaku has finished running." + copy += "Chusaku has finished running." copy += "\nThis was a dry run so no files were changed." if @flags.include?(:dry) copy += "\nExited with status code 1." if @flags.include?(:error_on_annotation) copy @@ -229,7 +229,7 @@ def changes_copy #{change[:new_body].chomp} ``` CHANGE_OUTPUT - end.join("\n") + end.join("\n") + "\n" end end end diff --git a/test/chusaku_test.rb b/test/chusaku_test.rb index f3e0644..de493b3 100644 --- a/test/chusaku_test.rb +++ b/test/chusaku_test.rb @@ -142,7 +142,7 @@ def test_mock_app_with_no_pending_annotations assert_equal(0, exit_code) assert_empty(File.written_files) - assert_equal("Nothing to annotate.\n", out) + assert_equal("Controller files unchanged.\n", out) end def test_mock_app_with_non_matching_controllers_pattern @@ -153,6 +153,6 @@ def test_mock_app_with_non_matching_controllers_pattern assert_equal(0, exit_code) assert_empty(File.written_files) - assert_equal("Nothing to annotate.\n", out) + assert_equal("Controller files unchanged.\n", out) end end