mirror of https://github.com/rails/rails
Merge pull request #16689 from ankit1910/improve-english
[ci skip] make assert messages consistent
This commit is contained in:
commit
9fb16627a2
|
@ -18,11 +18,11 @@ class ValidationsTest < ActiveModel::TestCase
|
|||
def test_single_field_validation
|
||||
r = Reply.new
|
||||
r.title = "There's no content!"
|
||||
assert r.invalid?, "A reply without content shouldn't be savable"
|
||||
assert r.invalid?, "A reply without content should be invalid"
|
||||
assert r.after_validation_performed, "after_validation callback should be called"
|
||||
|
||||
r.content = "Messa content!"
|
||||
assert r.valid?, "A reply with content should be savable"
|
||||
assert r.valid?, "A reply with content should be valid"
|
||||
assert r.after_validation_performed, "after_validation callback should be called"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue