From: Sumak <44816995+Kawsay@users.noreply.github.com> Date: Thu, 24 Feb 2022 13:46:21 +0000 (+0100) Subject: fix #17601 change `:keys` to `:attribute_names` (#17637) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=91cc8d1e636a3515b15758d0ad449a0477ea8c4c;p=mastodon.git fix #17601 change `:keys` to `:attribute_names` (#17637) --- 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