diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-12-21 16:36:34 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-12-21 16:36:34 -0200 |
commit | 060bf50caa7c8769970b5cea413b5c4c4e8c5cbf (patch) | |
tree | 8151ec9ac610b7f1faf7f168b4f180d3f3e23ff7 | |
parent | c9a953a17e106418ec36f2ab9a8644888a6cb2f6 (diff) | |
parent | 732bba8d4c5a40d9d2f51b82ed61a5b8070cbd44 (diff) | |
download | rails-060bf50caa7c8769970b5cea413b5c4c4e8c5cbf.tar.gz rails-060bf50caa7c8769970b5cea413b5c4c4e8c5cbf.tar.bz2 rails-060bf50caa7c8769970b5cea413b5c4c4e8c5cbf.zip |
Merge pull request #18118 from vipulnsward/fix-validation-message
Validation test fixes
-rw-r--r-- | activemodel/test/cases/validations_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activemodel/test/cases/validations_test.rb b/activemodel/test/cases/validations_test.rb index cef66f3c0d..2b932683ea 100644 --- a/activemodel/test/cases/validations_test.rb +++ b/activemodel/test/cases/validations_test.rb @@ -171,9 +171,8 @@ class ValidationsTest < ActiveModel::TestCase # A common mistake -- we meant to call 'validates' Topic.validate :title, presence: true end - message = 'Unknown key: :presence. Valid keys are: :on, :if, :unless. Perhaps you meant to call `validates` instead of `validate`?' - assert_includes error.message, "Unknown key: :presence" - assert_includes error.message, "Perhaps you meant to call `validates` instead of `validate`?" + message = 'Unknown key: :presence. Valid keys are: :on, :if, :unless, :prepend. Perhaps you meant to call `validates` instead of `validate`?' + assert_equal message, error.message end def test_callback_options_to_validate |