spec/unit/simpledb_adapter_spec.rb in dm-adapter-simpledb-1.2.0 vs spec/unit/simpledb_adapter_spec.rb in dm-adapter-simpledb-1.3.0
- old
+ new
@@ -72,9 +72,22 @@
'stock' => ['3'],
'__dm_metadata' => ['v01.01.00', 'foobar']}}
])
@record = Product.first
end
-
end
+
+ # it "should be able to request items with an offset" do
+ # @sdb.should_receive(:select).
+ # with(/count(\*).*LIMIT 10000/, anything).
+ # exactly(1).times.
+ # ordered.
+ # and_return(:next_token => "TOKEN")
+ # @sdb.should_receive(:select).
+ # with(anything, "TOKEN").
+ # exactly(1).times.
+ # ordered.
+ # and_return(:items => [])
+ # @record = Product.all(:offset => 10000, :limit => 10)
+ # end
end