search for: all_sites

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

2006 Apr 04
1
has_many fails where find_by_sql succeeds
...p my_first_site = sites(:my_first_site) # assert that all sites are not in an empty group stock_group = StockGroup.create(:description => "Dummy Stock Group", :dataset_id => 1, :image_source_id => 2) sites = stock_group.sites_not_using_this_stock_group all_sites = Site.find(:all, :order => "id asc") 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 = st...