Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3e47e193c64cc90981e1b87a26a951097c02d6ec 2 parents 52ba5a5 + 2242317
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/test/cases/validations/validations_context_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.