Skip to content

Commit

Permalink
style: corrected some style errors identified by rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Dec 8, 2024
1 parent 11397c2 commit ff89dd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/lib/rubycritic/learning/churn_gem_learning_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'churn'
require 'churn/calculator'
Expand All @@ -10,12 +12,12 @@
minimum_churn_count: 1 # Minimum number of changes to consider a file
}
Churn::GitAnalyzer.stubs(:supported?).returns(true)
churn_calculator = ::Churn::ChurnCalculator.new(config)
churn_calculator = Churn::ChurnCalculator.new(config)
report = churn_calculator.report(false)

changes = report[:churn][:changes].first

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

0 comments on commit ff89dd2

Please sign in to comment.