aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/finder_test.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-05-19 15:14:51 -0400
committerJosé Valim <jose.valim@gmail.com>2010-05-19 21:31:51 +0200
commit39a246f545a714b21c669e2f6eda4012526c3874 (patch)
tree89da32733821f0a7dcc56efdac82c72897eca424 /activerecord/test/cases/finder_test.rb
parentbdb2871df7fb0a1eeceadb31aaba4d160df508aa (diff)
downloadrails-39a246f545a714b21c669e2f6eda4012526c3874.tar.gz
rails-39a246f545a714b21c669e2f6eda4012526c3874.tar.bz2
rails-39a246f545a714b21c669e2f6eda4012526c3874.zip
Final iteration of use better testing methods
[#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/cases/finder_test.rb')
-rw-r--r--activerecord/test/cases/finder_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb
index c73ad50a71..860d330a7f 100644
--- a/activerecord/test/cases/finder_test.rb
+++ b/activerecord/test/cases/finder_test.rb
@@ -255,7 +255,7 @@ class FinderTest < ActiveRecord::TestCase
assert !topic.attribute_present?("title")
#assert !topic.respond_to?("title")
assert topic.attribute_present?("author_name")
- assert topic.respond_to?("author_name")
+ assert_respond_to topic, "author_name"
end
def test_find_on_blank_conditions