spec/cases/graph_collection_spec.rb in koala-1.10.1 vs spec/cases/graph_collection_spec.rb in koala-1.11.0rc
- old
+ new
@@ -143,19 +143,19 @@
expect(Koala::Facebook::GraphCollection.evaluate(result, @api)).to eq(expected)
end
end
describe "#next_page" do
- let(:paging){ {"next" => "http://example.com/?a=2&b=3"} }
+ let(:paging){ {"next" => "http://example.com/abc?a=2&b=3"} }
it "should get next page" do
- expect(@api).to receive(:get_page).with(["", {"a" => "2", "b" => "3"}])
+ expect(@api).to receive(:get_page).with(["abc", {"a" => "2", "b" => "3"}])
@collection.next_page
end
it "should get next page with extra parameters" do
- expect(@api).to receive(:get_page).with(["", {"a" => "2", "b" => "3", "c" => "4"}])
+ expect(@api).to receive(:get_page).with(["abc", {"a" => "2", "b" => "3", "c" => "4"}])
@collection.next_page("c" => "4")
end
end
describe "#previous_page" do
@@ -169,6 +169,6 @@
it "should get previous page with extra parameters" do
expect(@api).to receive(:get_page).with(["", {"a" => "2", "b" => "3", "c" => "4"}])
@collection.previous_page("c" => "4")
end
end
-end
\ No newline at end of file
+end