Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3

Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
Tarmo Tänav 2008-09-10 13:23:08 +03:00 committed by Michael Koziarski
parent a18ed6d563
commit 14d1560e85

@ -598,7 +598,7 @@ def test_find_last_by_one_attribute_caches_dynamic_finder
# 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