Skip to content

Commit 047e28d

Browse files
authored
Update expectation to be more convenient (#117)
* Update expectation to be more convenient * Added entry to the CHANGELOG file
1 parent 77bbd4e commit 047e28d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
* <INSERT YOUR FEATURE OR BUGFIX HERE>
1111

12+
* [ENHANCEMENT: Better test suite with more relaxed console output expectation](https://github.com/fastruby/skunk/pull/117)
13+
1214
## v0.5.3 / 2023-12-01 [(commits)](https://github.com/fastruby/skunk/compare/v0.5.2...v0.5.3)
1315

1416
* [BUGFIX: Update reek, rubocop, and terminal-table dependencies](https://github.com/fastruby/skunk/pull/111)

test/lib/skunk/application_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
end
5454

5555
_(File.read("tmp/generated_report.txt"))
56-
.must_equal File.read("test/samples/console_output.txt")
56+
.must_include File.read("test/samples/console_output.txt")
5757
end
5858
end
5959

test/samples/console_output.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@
77
SkunkScore Total: 0.59
88
Modules Analysed: 1
99
SkunkScore Average: 0.59
10-
Worst SkunkScore: 0.59 (samples/rubycritic/analysed_module.rb)
11-
12-
Generated with Skunk v0.5.2
10+
Worst SkunkScore: 0.59 (samples/rubycritic/analysed_module.rb)

0 commit comments

Comments
 (0)