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:
commit
3e47e193c6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue