spec/serializable/resource_spec.rb in restpack_serializer-0.4.6 vs spec/serializable/resource_spec.rb in restpack_serializer-0.4.7
- old
+ new
@@ -13,18 +13,18 @@
resource[:songs].count.should == 1
resource[:songs][0][:id].should == @song.id.to_s
end
describe "side-loading" do
- let(:params) { { id: @song.id, includes: 'albums' } }
+ let(:params) { { id: @song.id, include: 'albums' } }
it "includes side-loaded models" do
resource[:albums].count.should == 1
resource[:albums].first[:id].should == @song.album.id.to_s
end
it "includes the side-loads in the main meta data" do
- resource[:meta][:songs][:includes].should == [:albums]
+ resource[:meta][:songs][:include].should == [:albums]
end
end
describe "missing resource" do
let(:params) { { id: "-99" } }