Sha256: bdea7ba2ea8af424ba7a647ece75b5172a3cf236bc6c979dae44f852746b6724
Contents?: true
Size: 983 Bytes
Versions: 8
Compression:
Stored size: 983 Bytes
Contents
require "spec_helper" describe CFoundry::Client do before do CFoundry::V2::Client.any_instance.stub(:info) end subject { CFoundry::Client.get('http://example.com') } it "returns a v2 client" do subject.should be_a(CFoundry::V2::Client) end describe "service_instances" do let(:client) { build(:client) } it "defaults to true when the :user_provided option is not provided" do client.base.should_receive(:service_instances).with(user_provided: true).and_return([]) client.service_instances end it "calls super with true when :user_provded=true" do client.base.should_receive(:service_instances).with(user_provided: true).and_return([]) client.service_instances(user_provided: true) end it "calls super with false when :user_provided=false" do client.base.should_receive(:service_instances).with(user_provided: false).and_return([]) client.service_instances(user_provided: false) end end end
Version data entries
8 entries across 8 versions & 1 rubygems