From 14d1560e85d5c4795c21ddb00953cf55e0525ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarmo=20T=C3=A4nav?= Date: Wed, 10 Sep 2008 13:23:08 +0300 Subject: Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3 Signed-off-by: Michael Koziarski --- activerecord/test/cases/finder_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 3eee2056dd..1cbc5182d6 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -598,7 +598,7 @@ class FinderTest < ActiveRecord::TestCase # ensure this test can run independently of order class << Topic; self; end.send(:remove_method, :find_last_by_title) if Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' } assert !Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' } - t = Topic.find_last_by_title(Topic.last) + t = Topic.find_last_by_title(Topic.last.title) assert Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' } end -- cgit v1.2.3