Sha256: 215be784d82cc23f1710fcb0513ee18e5d1db0b1b1d01a0ccaef7a7df40a9358
Contents?: true
Size: 709 Bytes
Versions: 6
Compression:
Stored size: 709 Bytes
Contents
require "spec_helper" require_relative "../../lib/dribbble_bucket_api/connection" describe DribbbleBucketApi::Connection do subject do DribbbleBucketApi::Connection.new("ryantownsend") end describe "#buckets" do context "when provided with a page" do it "should merge the page into a hash with the connection" do subject.should_receive(:load_collection).with({ page: 1, connection: subject }) subject.buckets(page: 1) end end context "when not provided with a page" do it "should load the collection using a hash with the connection" do subject.should_receive(:load_collection).with({ connection: subject }) subject.buckets end end end end
Version data entries
6 entries across 6 versions & 1 rubygems