From 0756375fb408a7e07acf3fea691e04530e61870a Mon Sep 17 00:00:00 2001
From: Yuki Nishijima <mail@yukinishijima.net>
Date: Sun, 21 Sep 2014 11:34:37 -0700
Subject: Fix assertions in AR::TestCase::AttributeMethodsTest

This test has always been green because it uses "assert" and the first
argument is an truthy class/object.
---
 activerecord/test/cases/attribute_methods_test.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'activerecord')

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
-- 
cgit v1.2.3