diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-21 12:00:38 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-21 12:00:38 -0400 |
commit | 2242317fddaec2d2cca5103b4f79f71d73d25b31 (patch) | |
tree | 077800401961fdf7470db942ff8845c8a349c7b4 /activemodel/test/cases | |
parent | a489bfe48bc0fbbb50a472bc66bd42d408c73fcb (diff) | |
download | rails-2242317fddaec2d2cca5103b4f79f71d73d25b31.tar.gz rails-2242317fddaec2d2cca5103b4f79f71d73d25b31.tar.bz2 rails-2242317fddaec2d2cca5103b4f79f71d73d25b31.zip |
fix wrong test description and failure message
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r-- | activemodel/test/cases/validations/validations_context_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/validations/validations_context_test.rb b/activemodel/test/cases/validations/validations_context_test.rb index 15a49e38dd..b795861f95 100644 --- a/activemodel/test/cases/validations/validations_context_test.rb +++ b/activemodel/test/cases/validations/validations_context_test.rb @@ -18,10 +18,10 @@ class ValidationsContextTest < ActiveModel::TestCase end end - test "with a class that adds errors on update and validating a new model with no arguments" do + test "with a class that adds errors on create and validating a new model with no arguments" do Topic.validates_with(ValidatorThatAddsErrors, :on => :create) topic = Topic.new - assert topic.valid?, "Validation doesn't run on create if 'on' is set to update" + assert topic.valid?, "Validation doesn't run on valid? if 'on' is set to create" end test "with a class that adds errors on update and validating a new model" do |