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:
commit
3f39ac4ee8
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue