Merge pull request #16689 from ankit1910/improve-english

[ci skip] make assert messages consistent
This commit is contained in:
Eileen M. Uchitelle 2014-08-25 19:37:10 -04:00
commit 9fb16627a2
1 changed files with 2 additions and 2 deletions

View File

@ -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