search for: all_other_sit

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

Did you mean: all_other_sites
2006 Apr 04
1
has_many fails where find_by_sql succeeds
...t;) assert_equal all_sites, sites # assert that a site added to the group does not appear in the sites not in this group first_site = Site.find(1) stock_group.sites << first_site assert stock_group.save sites = stock_group.sites_not_using_this_stock_group all_other_sites = Site.find(:all, :conditions => "id <> # {first_site.id}", :order => "id asc") assert_equal all_other_sites, sites end end