public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3

Signed-off-by: Michael Koziarski <michael@koziarski.com>
Tarmo Tänav (author)
Wed Sep 10 03:23:08 -0700 2008
NZKoz (committer)
Wed Sep 10 04:40:45 -0700 2008
commit  14d1560e85d5c4795c21ddb00953cf55e0525ee3
tree    c4e0c8a3016f5c04ef9a6056894d5c5154cca768
parent  a18ed6d5635f2d2a5d60e073757839895b1ade70
...
598
599
600
601
 
602
603
604
...
598
599
600
 
601
602
603
604
0
@@ -598,7 +598,7 @@ class FinderTest < ActiveRecord::TestCase
0
     # ensure this test can run independently of order
0
     class << Topic; self; end.send(:remove_method, :find_last_by_title) if Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' }
0
     assert !Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' }
0
-    t = Topic.find_last_by_title(Topic.last)
0
+    t = Topic.find_last_by_title(Topic.last.title)
0
     assert Topic.public_methods.any? { |m| m.to_s == 'find_last_by_title' }
0
   end
0
 

Comments