spec/misc_spec.rb in cf-uaa-lib-1.3.2 vs spec/misc_spec.rb in cf-uaa-lib-1.3.3

- old
+ new

@@ -27,10 +27,10 @@ it "gets server info" do Misc.set_request_handler do |url, method, body, headers| url.should == "https://uaa.cloudfoundry.com/login" method.should == :get headers["content-type"].should be_nil - headers["accept"].should =~ /application\/json/ + headers["accept"].gsub(/\s/, '').should =~ /application\/json;charset=utf-8/i [200, '{"commit_id":"12345","prompts":["one","two"]}', {"content-type" => "application/json"}] end result = Misc.server("https://uaa.cloudfoundry.com") result["prompts"].should_not be_nil result["commit_id"].should_not be_nil