This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
fix
#17601
change `:keys` to `:attribute_names` (
#17637
)
closed-social-glitch-2
Sumak
2 years ago
committed by
GitHub
parent
b7cf11d5a9
commit
91cc8d1e63
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
spec/support/matchers/model/model_have_error_on_field.rb
+ 1
- 1
spec/support/matchers/model/model_have_error_on_field.rb
View File
@ -8,7 +8,7 @@ RSpec::Matchers.define :model_have_error_on_field do |expected|
end
failure_message
do
|
record
|
keys
=
record
.
errors
.
key
s
keys
=
record
.
errors
.
attribute_name
s
"
expect record.errors(
#{
keys
}
) to include
#{
expected
}
"
end
Write
Preview
Loading…
Cancel
Save