Skip to content

Commit

Permalink
test: made assertion stronger.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 8, 2024
1 parent e719791 commit 11397c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/lib/rubycritic/learning/churn_gem_learning_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
report = churn_calculator.report(false)

changes = report[:churn][:changes].first
assert changes.has_key?(:file_path)
assert changes.has_key?(:times_changed)

assert_equal 'CHANGELOG.md', changes[:file_path]
assert changes[:times_changed].positive?
end
end

0 comments on commit 11397c2

Please sign in to comment.