Sha256: eb549ce949092cf69350275bb03f35eca050f8e0877c54cddee48cc654252ec3
Contents?: true
Size: 709 Bytes
Versions: 20
Compression:
Stored size: 709 Bytes
Contents
shared_examples_for "all pages" do it "knows if there is a next page" do @first_page.has_next?.should be_true @second_page.has_next?.should be_true @last_page.has_next?.should be_false end it "returns the next page when there is one" do @first_page.next_page.body.should =~ @second_page_test_regex end it "raises an exception when asked for a next page and there is none" do lambda { @last_page.next_page }.should raise_exception(AmazonSellerCentral::Page::NoNextPageAvailableError) end it "knows if it is the last page" do @first_page.last_page?.should be_false @second_page.last_page?.should be_false @last_page.last_page?.should be_true end end
Version data entries
20 entries across 20 versions & 1 rubygems