spec/live/collection_spec.rb in zendesk_api-0.2.2 vs spec/live/collection_spec.rb in zendesk_api-0.2.4
- old
+ new
@@ -15,13 +15,11 @@
subject.per_page(1).page(2)
subject.fetch(true)
end
end
- context "pagination with no options" do
- use_vcr_cassette
-
+ context "pagination with no options", :vcr do
before(:each) { subject.per_page(nil).page(nil) }
it "should find the next page by calling fetch" do
current = subject.to_a.dup
nxt = subject.next
@@ -37,12 +35,10 @@
prev.size.should == 1
prev.should_not == current
end
end
- context "pagination with options" do
- use_vcr_cassette
-
+ 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
end