0
0
Fork 0

Autofix Rubocop Style/PreferredHashMethods (#23851)

This commit is contained in:
Nick Schonning 2023-03-15 20:36:37 -04:00 committed by GitHub
parent 65669d3c57
commit a38f67c1c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -4,7 +4,7 @@ RSpec::Matchers.define :model_have_error_on_field do |expected|
match do |record|
record.valid? if record.errors.empty?
record.errors.has_key?(expected)
record.errors.key?(expected)
end
failure_message do |record|