spec/support/shared_examples/pageable.rb in binged-0.3.0 vs spec/support/shared_examples/pageable.rb in binged-1.0.0

- old
+ new

@@ -1,13 +1,13 @@ share_as :AnyPageable do - + it "should be able to specify the number of results per page" do @search.per_page(10) - @search.query["#{@search.source.to_s.capitalize}.Count"].should == 10 + @search.query["$top"].should == 10 end it "should be able to specify the page number" do @search.page(3) - @search.query["#{@search.source.to_s.capitalize}.Offset"].should == 20 * 2 + @search.query["$skip"].should == 20 * 2 end - + end \ No newline at end of file