mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
parent
b7cf11d5a9
commit
91cc8d1e63
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user