diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-09-10 13:23:08 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-10 13:40:45 +0200 |
commit | 14d1560e85d5c4795c21ddb00953cf55e0525ee3 (patch) | |
tree | c4e0c8a3016f5c04ef9a6056894d5c5154cca768 | |
parent | a18ed6d5635f2d2a5d60e073757839895b1ade70 (diff) | |
download | rails-14d1560e85d5c4795c21ddb00953cf55e0525ee3.tar.gz rails-14d1560e85d5c4795c21ddb00953cf55e0525ee3.tar.bz2 rails-14d1560e85d5c4795c21ddb00953cf55e0525ee3.zip |
Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3
Signed-off-by: Michael Koziarski <michael@koziarski.com>
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |