aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test
diff options
context:
space:
mode:
authorMartin Larochelle <martin.larochelle@shopify.com>2018-08-16 11:07:56 -0400
committerMartin Larochelle <martin.larochelle@shopify.com>2018-08-16 11:50:13 -0400
commit8d2f3179e6f312b34a2bacf36bc74f9c24e751bd (patch)
tree817ea930fe5fda360295c7be6a928fea2fec003a /activemodel/test
parent0b54641878a9cee450170135ca0c43ddbb4cb09f (diff)
downloadrails-8d2f3179e6f312b34a2bacf36bc74f9c24e751bd.tar.gz
rails-8d2f3179e6f312b34a2bacf36bc74f9c24e751bd.tar.bz2
rails-8d2f3179e6f312b34a2bacf36bc74f9c24e751bd.zip
Call human_attribute_name with a string instead of a symbole
Diffstat (limited to 'activemodel/test')
-rw-r--r--activemodel/test/cases/validations/i18n_validation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations/i18n_validation_test.rb b/activemodel/test/cases/validations/i18n_validation_test.rb
index 3e135e6f8e..ccb565c5bd 100644
--- a/activemodel/test/cases/validations/i18n_validation_test.rb
+++ b/activemodel/test/cases/validations/i18n_validation_test.rb
@@ -35,7 +35,7 @@ class I18nValidationTest < ActiveModel::TestCase
def test_errors_full_messages_translates_human_attribute_name_for_model_attributes
@person.errors.add(:name, "not found")
- assert_called_with(Person, :human_attribute_name, [:name, default: "Name"], returns: "Person's name") do
+ assert_called_with(Person, :human_attribute_name, ["name", default: "Name"], returns: "Person's name") do
assert_equal ["Person's name not found"], @person.errors.full_messages
end
end