diff options
author | Sumak <44816995+Kawsay@users.noreply.github.com> | 2022-02-24 14:46:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 14:46:21 +0100 |
commit | 91cc8d1e636a3515b15758d0ad449a0477ea8c4c (patch) | |
tree | 18eb10de5c3af62b7561823f307b468d16a1e649 /spec/support/matchers/model | |
parent | b7cf11d5a93530f736b1584f0d13d8fe50f45ccf (diff) |
fix #17601 change `:keys` to `:attribute_names` (#17637)
Diffstat (limited to 'spec/support/matchers/model')
-rw-r--r-- | spec/support/matchers/model/model_have_error_on_field.rb | 2 |
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 a5dfbf457..85bdd8215 100644 --- a/spec/support/matchers/model/model_have_error_on_field.rb +++ b/spec/support/matchers/model/model_have_error_on_field.rb @@ -8,7 +8,7 @@ RSpec::Matchers.define :model_have_error_on_field do |expected| end failure_message do |record| - keys = record.errors.keys + keys = record.errors.attribute_names "expect record.errors(#{keys}) to include #{expected}" end |