1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 15:16:26 +09:00

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

This commit is contained in:
Sumak 2022-02-24 14:46:21 +01:00 committed by GitHub
parent b7cf11d5a9
commit 91cc8d1e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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