diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-07-28 22:59:42 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-07-28 22:59:42 +0900 |
commit | 0a20e48d5235c447d8ab541b406212cf4a4abd3c (patch) | |
tree | abd176d7131bd4e2c7191ba3f6cfdef4d238c782 /activemodel/test/cases/validations | |
parent | e18bf1dc49222e25d5a485e876e13fc3e57c6eca (diff) | |
download | rails-0a20e48d5235c447d8ab541b406212cf4a4abd3c.tar.gz rails-0a20e48d5235c447d8ab541b406212cf4a4abd3c.tar.bz2 rails-0a20e48d5235c447d8ab541b406212cf4a4abd3c.zip |
pass the correct argument to mock on a test of `validates_length_of`
Diffstat (limited to 'activemodel/test/cases/validations')
-rw-r--r-- | activemodel/test/cases/validations/i18n_validation_test.rb | 2 |
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 ce9a782f73..09d7226b5a 100644 --- a/activemodel/test/cases/validations/i18n_validation_test.rb +++ b/activemodel/test/cases/validations/i18n_validation_test.rb @@ -101,7 +101,7 @@ class I18nValidationTest < ActiveModel::TestCase Person.validates_length_of :title, validation_options.merge(within: 3..5) @person.title = 'this title is too long' call = [:title, :too_long, generate_message_options.merge(count: 5)] - assert_called_with(@person.errors, :generate_message, ) do + assert_called_with(@person.errors, :generate_message, call) do @person.valid? end end |