1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #16998 from yuki24/fix-false-assertion

Fix false assertions in AR::TestCase::AttributeMethodsTest
This commit is contained in:
Matthew Draper 2014-09-22 05:44:27 +09:30
commit 3f39ac4ee8

View file

@ -738,9 +738,9 @@ class AttributeMethodsTest < ActiveRecord::TestCase
error = assert_raises(ActiveRecord::UnknownAttributeError) {
@target.new(:hello => "world")
}
assert @target, error.record
assert "hello", error.attribute
assert "unknown attribute: hello", error.message
assert_instance_of @target, error.record
assert_equal "hello", error.attribute
assert_equal "unknown attribute: hello", error.message
end
def test_methods_override_in_multi_level_subclass