spec/live/collection_spec.rb in zendesk_api-0.3.2 vs spec/live/collection_spec.rb in zendesk_api-0.3.3
- old
+ new
@@ -8,11 +8,11 @@
context "with real data" do
subject do
ZendeskAPI::Collection.new(client, ZendeskAPI::User)
end
- before(:all) do
+ before(:each) do
VCR.use_cassette('collection_fetch_users') do
subject.per_page(1).page(2)
subject.fetch(true)
end
end
@@ -39,18 +39,18 @@
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
+ subject.next.should == 3
end
it "should decrease page option and not call fetch" do
- subject.prev.should == 1
+ subject.prev.should == 1
end
context "with page == 1" do
- before do
+ before do
subject.page(1)
subject.clear_cache
subject.should_not_receive(:fetch)
end