1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

fix wrong test description and failure message
This commit is contained in:
Carlos Antonio da Silva 2013-04-21 09:22:51 -07:00
commit 3e47e193c6

View file

@ -18,10 +18,10 @@ class ValidationsContextTest < ActiveModel::TestCase
end end
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.validates_with(ValidatorThatAddsErrors, :on => :create)
topic = Topic.new 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 end
test "with a class that adds errors on update and validating a new model" do test "with a class that adds errors on update and validating a new model" do