spec/misc_spec.rb in cf-uaa-lib-1.3.9 vs spec/misc_spec.rb in cf-uaa-lib-1.3.10

- old
+ new

@@ -66,9 +66,18 @@ it "gets UAA target" do result = Misc.discover_uaa("https://login.cloudfoundry.com") result.should == "https://uaa.cloudfoundry.com" end + context "when there is no 'links' key present" do + let(:response_body) { '{ "prompts" : ["one","two"]} ' } + + it "returns the login url" do + result = Misc.discover_uaa("https://login.cloudfoundry.com") + result.should == "https://login.cloudfoundry.com" + end + end + context "with symbol keys" do around do |example| CF::UAA::Misc.symbolize_keys = true example.call CF::UAA::Misc.symbolize_keys = false