spec/cfoundry/v2/client_spec.rb in cfoundry-2.2.0.rc1 vs spec/cfoundry/v2/client_spec.rb in cfoundry-2.2.0.rc2

- old
+ new

@@ -11,16 +11,16 @@ let(:password) { "secret" } subject { client.register(email, password) } it "creates the user in uaa and ccng" do - stub(client.base).uaa { uaa } - stub(uaa).add_user(email, password) { {"id" => "1234"} } + client.base.stub(:uaa) { uaa } + uaa.stub(:add_user).with(email, password) { {"id" => "1234"} } user = build(:user) - stub(client).user { user } - stub(user).create! + client.stub(:user) { user } + user.stub(:create!) subject expect(user.guid).to eq "1234" end end @@ -72,6 +72,6 @@ end end end end end -end \ No newline at end of file +end