diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-21 19:55:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 09:55:31 +0900 |
commit | 84cc805caea566d4fb0fafce411cd07f83cfd0e2 (patch) | |
tree | 90742b7a02b2907a419fee5ef59e031d04607729 /spec/support/matchers/model | |
parent | 0cfdd1a401f055c23e308a4b823bd250b1cbb3d3 (diff) |
Enable Style/FrozenStringLiteralComment for specs (#23790)
Diffstat (limited to 'spec/support/matchers/model')
-rw-r--r-- | spec/support/matchers/model/model_have_error_on_field.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 d85db2fca..21632b574 100644 --- a/spec/support/matchers/model/model_have_error_on_field.rb +++ b/spec/support/matchers/model/model_have_error_on_field.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + RSpec::Matchers.define :model_have_error_on_field do |expected| match do |record| record.valid? if record.errors.empty? |