spec/collection_spec.rb in reviewed-0.7.1 vs spec/collection_spec.rb in reviewed-0.8.0
- old
+ new
@@ -23,9 +23,15 @@
product.class.should == Reviewed::Product
product.id.should_not be_blank
end
end
+ it 'passes the client to each object' do
+ @collection.each do |product|
+ product.client.should eql(client)
+ end
+ end
+
it 'fetches the first page by default' do
@collection.current_page.should == 1
end
end