spec/collection_spec.rb in vj-sdk-0.5.2 vs spec/collection_spec.rb in vj-sdk-0.5.3
- old
+ new
@@ -2,16 +2,16 @@
describe Videojuicer::Resource::Collection do
before(:all) do
@objects = [:foo]*100
- @collection = Videojuicer::Resource::Collection.new(@objects[0..9], 155, 17, 10)
+ @collection = Videojuicer::Resource::Collection.new(@objects[0..9], 155, 10, 10)
end
it "is instantiated correctly" do
@collection.should be_kind_of(Videojuicer::Resource::Collection)
@collection.total.should == 155
- @collection.offset.should == 17
+ @collection.offset.should == 10
@collection.limit.should == 10
end
it "can count the number of pages" do
@collection.page_count.should == 16
\ No newline at end of file