Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e5b327dde4
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.648 kb
require File.join(File.dirname(__FILE__), *%w[abstract_spec])
describe "Eager scope" do
before do
uses_fixture(:article)
end
it "should provide eager loading of a single association" do
Article.with(:comments).proxy_options.should == {:include => [:comments] }
end
it "should provide eager loading of a multiple associations" do
Article.with(:comments, :contributors).proxy_options.should == {:include => [:comments, :contributors] }
end
it "should provider eager loading of nested associations" do
Article.with(:comments => :author).proxy_options.should == {:include => [ {:comments => :author} ] }
end
end
Jump to Line
Something went wrong with that request. Please try again.