aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/validations_test.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb
index 13c4a04b62..2cce21597a 100755
--- a/activerecord/test/validations_test.rb
+++ b/activerecord/test/validations_test.rb
@@ -221,11 +221,16 @@ class ValidationsTest < Test::Unit::TestCase
t = Topic.create
assert !t.save
- assert_equal "can't be empty", t.errors.on(:title)
- assert_equal "can't be empty", t.errors.on(:content)
+ assert_equal "can't be blank", t.errors.on(:title)
+ assert_equal "can't be blank", t.errors.on(:content)
t.title = "something"
- t.content = "another"
+ t.content = " "
+
+ assert !t.save
+ assert_equal "can't be blank", t.errors.on(:content)
+
+ t.content = "like stuff"
assert t.save
end