spec/cfoundry/v2/client_spec.rb in cfoundry-2.4.0 vs spec/cfoundry/v2/client_spec.rb in cfoundry-2.4.1.rc1

- old
+ new

@@ -1,14 +1,14 @@ require "spec_helper" module CFoundry module V2 describe Client do - let(:client) { build(:client) } + subject(:client) { build(:client) } describe "#register" do - let(:uaa) { UAAClient.new } + let(:uaa) { UAAClient.new('http://uaa.example.com') } let(:email) { "test@test.com" } let(:password) { "secret" } subject { client.register(email, password) } @@ -75,14 +75,14 @@ describe "#target=" do let(:new_target) { "some-target-url.com"} it "sets a new target" do - expect{client.target = new_target}.to change {client.target}.from("http://api.cloudfoundry.com").to(new_target) + expect{client.target = new_target}.to change {client.target}.from("http://api.example.com").to(new_target) end it "sets a new target on the base client" do - expect{client.target = new_target}.to change{client.base.target}.from("http://api.cloudfoundry.com").to(new_target) + expect{client.target = new_target}.to change{client.base.target}.from("http://api.example.com").to(new_target) end end end end end