about summary refs log tree commit diff
path: root/spec/support/matchers
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-03-15 20:36:37 -0400
committerGitHub <noreply@github.com>2023-03-16 01:36:37 +0100
commita38f67c1c3f3c05bcbf552aad2f7f931fa0a4286 (patch)
tree02a063b2a9f6a4ad5065ed0ad8ea15ce805037f5 /spec/support/matchers
parent65669d3c5719e72000bf26849d0ee1eaec1f9d1b (diff)
Autofix Rubocop Style/PreferredHashMethods (#23851)
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/model/model_have_error_on_field.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers/model/model_have_error_on_field.rb b/spec/support/matchers/model/model_have_error_on_field.rb
index 21632b574..0f9c81a47 100644
--- a/spec/support/matchers/model/model_have_error_on_field.rb
+++ b/spec/support/matchers/model/model_have_error_on_field.rb
@@ -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|