Autofix Rubocop Style/IfUnlessModifier (#23697)
This commit is contained in:
parent
9ab2a775c9
commit
e2a3ebb271
40 changed files with 55 additions and 271 deletions
|
@ -1,8 +1,6 @@
|
|||
RSpec::Matchers.define :model_have_error_on_field do |expected|
|
||||
match do |record|
|
||||
if record.errors.empty?
|
||||
record.valid?
|
||||
end
|
||||
record.valid? if record.errors.empty?
|
||||
|
||||
record.errors.has_key?(expected)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue