spec/cfoundry/uaaclient_spec.rb in cfoundry-3.0.0 vs spec/cfoundry/uaaclient_spec.rb in cfoundry-3.0.1
- old
+ new
@@ -136,22 +136,22 @@
:headers => { "authorization" => auth_header }
).to_return(
:headers => {'Content-Type' => 'application/json'},
:body => '{ "resources": [] }'
)
- expect(subject).to eq({'resources' => []})
+ expect(subject).to eq({:resources => []})
end
context "when there is no token" do
before { uaa.token = nil }
it "doesn't blow up" do
stub_request(:get, "#{target}/Users").to_return(
:headers => {'Content-Type' => 'application/json'},
:body => '{ "resources": [] }'
)
- expect(subject).to eq({'resources' => []})
+ expect(subject).to eq({:resources => []})
end
end
end
describe '#change_password' do
@@ -260,10 +260,10 @@
:status => 200,
:body => '{ "id" : "id" }',
:headers => { "Content-Type" => 'application/json' }
)
- expect(subject).to eq({"id" => "id"})
+ expect(subject).to eq({:id => "id"})
expect(req).to have_been_requested
end
end
end