aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-09-22 05:44:27 +0930
committerMatthew Draper <matthew@trebex.net>2014-09-22 05:44:27 +0930
commit3f39ac4ee8ea96dbd921b13485e1976c04733889 (patch)
treef616f18edd2e5c765e63f2e73e435c89e46ce0f5 /activerecord
parent3e27a03fe4125eb5c15fb4ef34f1fc06ed4db67f (diff)
parent0756375fb408a7e07acf3fea691e04530e61870a (diff)
downloadrails-3f39ac4ee8ea96dbd921b13485e1976c04733889.tar.gz
rails-3f39ac4ee8ea96dbd921b13485e1976c04733889.tar.bz2
rails-3f39ac4ee8ea96dbd921b13485e1976c04733889.zip
Merge pull request #16998 from yuki24/fix-false-assertion
Fix false assertions in AR::TestCase::AttributeMethodsTest
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index b42cc3a173..7ca7349528 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -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