Skip to content

Commit

Permalink
Fix some more quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Sep 26, 2023
1 parent acfa045 commit 60002c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/test/cases/autosave_association_test.rb
Expand Up @@ -644,7 +644,7 @@ def self.name; "Person"; end
assert_predicate reference_valid, :valid?
assert_not_predicate reference_invalid, :valid?
assert_not_predicate p, :valid?
assert_equal ["should be favorite", "cant be blank"], p.errors.full_messages
assert_equal ["should be favorite", "can't be blank"], p.errors.full_messages
ensure
ActiveModel::Error.i18n_customize_full_message = old_i18n_customize_full_message
I18n.backend = I18n::Backend::Simple.new
Expand Down Expand Up @@ -687,14 +687,14 @@ def self.name; "Person"; end

p = person.new
assert_not_predicate p, :valid?
assert_equal ["Super reference cant be blank"], p.errors.full_messages
assert_equal ["Super reference can't be blank"], p.errors.full_messages

reference_invalid = reference.new(favorite: false)
p.reference = reference_invalid

assert_not_predicate reference_invalid, :valid?
assert_not_predicate p, :valid?
assert_equal [" should be favorite", "Reference job cant be blank"], p.errors.full_messages
assert_equal [" should be favorite", "Reference job can't be blank"], p.errors.full_messages
ensure
I18n.backend = I18n::Backend::Simple.new
end
Expand Down

0 comments on commit 60002c3

Please sign in to comment.