spec/live/collection_spec.rb in zendesk_api-1.3.9 vs spec/live/collection_spec.rb in zendesk_api-1.4.0

- old
+ new

@@ -22,42 +22,42 @@ it "should find the next page by calling fetch" do current = subject.to_a.dup nxt = subject.next - nxt.size.should == 1 - nxt.should_not == current + expect(nxt.size).to eq(1) + expect(nxt).to_not eq(current) end it "should find the prev page by calling fetch" do current = subject.to_a.dup prev = subject.prev - prev.size.should == 1 - prev.should_not == current + expect(prev.size).to eq(1) + expect(prev).to_not eq(current) end end context "pagination with options", :vcr do before(:each) { subject.per_page(1).page(2) } it "should increase page option and not call fetch" do - subject.next.should == 3 + expect(subject.next).to eq(3) end it "should decrease page option and not call fetch" do - subject.prev.should == 1 + expect(subject.prev).to eq(1) end context "with page == 1" do before do subject.page(1) subject.clear_cache - subject.should_not_receive(:fetch) + expect(subject).to_not receive(:fetch) end it "should do nothing on #prev" do - subject.prev.should == [] + expect(subject.prev).to eq([]) end end end end end