Sha256: 9d8416dce0cfa416e15841a9cbf4efaa81c3705b734a5676b0518b4ddd908c1b
Contents?: true
Size: 667 Bytes
Versions: 6
Compression:
Stored size: 667 Bytes
Contents
require "spec_helper" require_relative "../../lib/dribbble_bucket_api/bucket_collection" describe DribbbleBucketApi::BucketCollection do subject { DribbbleBucketApi::BucketCollection } let(:connection) do mock("connection", username: "ryantownsend") end describe "::retrieve" do context "with a connection" do it "should return an instance of a collection" do result = subject.retrieve(connection: connection) expect(result).to be_kind_of subject end end context "without a connection" do it "should raise an exception" do expect { subject.retrieve(connection: nil) }.to raise_error(ArgumentError) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems