fix #17601 change `:keys` to `:attribute_names` (#17637)

lolsob-rspec
Sumak 2022-02-24 14:46:21 +01:00 committed by GitHub
parent 543d13ed7a
commit 8297be76ff
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ RSpec::Matchers.define :model_have_error_on_field do |expected|
end end
failure_message do |record| failure_message do |record|
keys = record.errors.keys keys = record.errors.attribute_names
"expect record.errors(#{keys}) to include #{expected}" "expect record.errors(#{keys}) to include #{expected}"
end end