spec/named_scopes/associations_spec.rb in binarylogic-searchlogic-2.0.0 vs spec/named_scopes/associations_spec.rb in binarylogic-searchlogic-2.0.1
- old
+ new
@@ -117,8 +117,8 @@
it "should allow the use of deep :include when traveling through the duplicate join" do
company = Company.create
user = company.users.create(:username => "bjohnson")
order = user.orders.create(:total => 20, :taxes => 3)
- Company.ascend_by_users_orders_total.users_orders_taxes_lt(50).all(:include => {:users => :orders}).should == Company.all
+ Company.users_orders_taxes_lt(50).ascend_by_users_orders_total.all(:include => {:users => :orders}).should == Company.all
end
end
\ No newline at end of file