aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-21 09:22:51 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-21 09:22:51 -0700
commit3e47e193c64cc90981e1b87a26a951097c02d6ec (patch)
tree1d0ef68a7961bcc28267937013948098020214e8 /activemodel
parent52ba5a5bec5b2961711be459982b6a58eed63f46 (diff)
parent2242317fddaec2d2cca5103b4f79f71d73d25b31 (diff)
downloadrails-3e47e193c64cc90981e1b87a26a951097c02d6ec.tar.gz
rails-3e47e193c64cc90981e1b87a26a951097c02d6ec.tar.bz2
rails-3e47e193c64cc90981e1b87a26a951097c02d6ec.zip
Merge pull request #10286 from neerajdotname/fix-wrong-test-name-and-failure-message
fix wrong test description and failure message
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/validations/validations_context_test.rb4
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