Skip to content

Commit

Permalink
Merge pull request #247 from koic/prevent_breaking_change_for_asserti…
Browse files Browse the repository at this point in the history
…on_message_in_test

Prevent breaking change for assertion message in test
  • Loading branch information
koic authored Mar 25, 2023
2 parents 4149cbd + a96a985 commit f63e45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#247](https://github.com/rubocop/rubocop-minitest/pull/247): Prevent breaking change for assertion message in test. ([@koic][])
2 changes: 1 addition & 1 deletion lib/rubocop/minitest/assert_offense.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def setup
cop_name = self.class.to_s.delete_suffix('Test')
return unless RuboCop::Cop::Minitest.const_defined?(cop_name)

@cop = RuboCop::Cop::Minitest.const_get(cop_name).new
@cop = RuboCop::Cop::Minitest.const_get(cop_name).new(configuration)
end

def format_offense(source, **replacements)
Expand Down

0 comments on commit f63e45d

Please sign in to comment.