Apparently asssert_empty is not available in 1.8.7

This commit is contained in:
Piotr Sarnacki
2012-01-16 18:26:56 +01:00
parent 48f9835bf5
commit 90aae070ed

View File

@@ -31,7 +31,7 @@ class ErrorsTest < ActiveModel::TestCase
errors = ActiveModel::Errors.new(self)
errors[:foo] = 'omg'
errors.delete(:foo)
assert_empty errors[:foo]
assert errors[:foo].empty?
end
def test_include?