search for: leadstatus

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

Did you mean: readstatus
2008 May 22
14
Specifying certain tables NOT to be cleared each example?
..., 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 of these tables and loading all the fixtures on each describe bloc...