search for: buyerrequest

Displaying 1 result from an estimated 1 matches for "buyerrequest".

Did you mean: buyer_requests
2006 Jul 05
2
Association Extensions
...#39;#{Date.today}\''") end def closed find(:all, :conditions => "buyer_requests.closing_date <= \''#{Date.today}\''") end end with the following ActiveRecord class User < ActiveRecord::Base has_many :my_requests, :class_name => "BuyerRequest", :extend => RequestFinder end In my tests I have a test to check the number of requests. def test_number_of _open_requests john = users(:john) openrequests = john.my_requests.open assert openrequests.count == 1 end Although this returns an array with the correct values my problem i...