search for: lead_status_id

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

2008 May 22
14
Specifying certain tables NOT to be cleared each example?
...15-20 fixtures on every example. Yes, I could mock/stub all the values, except that I use many of these values at class definition time, which means that errors are thrown before I can even mock/stub. For instance, I have a statement like this. named_scope :open, :conditions => ["lead_status_id IN (?)", %w{New Incubating Client UAG}.collect{|x| LeadStatus[x].id}] Which loads the named_scope using the string version of the enumeration for clarity''s sake. It works great, except for testing. Does anybody see anyway around this other than creating a fixture file for each...