From 047e28dfb770bd573db9bcf4d70023fbb19b8a59 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Sat, 2 Mar 2024 12:01:14 -0500 Subject: [PATCH] Update expectation to be more convenient (#117) * Update expectation to be more convenient * Added entry to the CHANGELOG file --- CHANGELOG.md | 2 ++ test/lib/skunk/application_test.rb | 2 +- test/samples/console_output.txt | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e934c6..355129d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * +* [ENHANCEMENT: Better test suite with more relaxed console output expectation](https://github.com/fastruby/skunk/pull/117) + ## v0.5.3 / 2023-12-01 [(commits)](https://github.com/fastruby/skunk/compare/v0.5.2...v0.5.3) * [BUGFIX: Update reek, rubocop, and terminal-table dependencies](https://github.com/fastruby/skunk/pull/111) diff --git a/test/lib/skunk/application_test.rb b/test/lib/skunk/application_test.rb index ff0a435..2752f36 100644 --- a/test/lib/skunk/application_test.rb +++ b/test/lib/skunk/application_test.rb @@ -53,7 +53,7 @@ end _(File.read("tmp/generated_report.txt")) - .must_equal File.read("test/samples/console_output.txt") + .must_include File.read("test/samples/console_output.txt") end end diff --git a/test/samples/console_output.txt b/test/samples/console_output.txt index d5c4893..b4123b1 100644 --- a/test/samples/console_output.txt +++ b/test/samples/console_output.txt @@ -7,6 +7,4 @@ SkunkScore Total: 0.59 Modules Analysed: 1 SkunkScore Average: 0.59 -Worst SkunkScore: 0.59 (samples/rubycritic/analysed_module.rb) - -Generated with Skunk v0.5.2 +Worst SkunkScore: 0.59 (samples/rubycritic/analysed_module.rb) \ No newline at end of file