Permalink
Browse files

Merge pull request #10286 from neerajdotname/fix-wrong-test-name-and-…

…failure-message

fix wrong test description and failure message
  • Loading branch information...
2 parents 52ba5a5 + 2242317 commit 3e47e193c64cc90981e1b87a26a951097c02d6ec @carlosantoniodasilva carlosantoniodasilva committed Apr 21, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/test/cases/validations/validations_context_test.rb
@@ -18,10 +18,10 @@ def validate(record)
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

0 comments on commit 3e47e19

Please sign in to comment.