Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change to make UAA BVTs work with Ruby 1.8.7

Change-Id: Ic17654226bdb99110dc843f9616a05a2faa92835
  • Loading branch information...
commit 6343d7699cb83a02334aa9d4d20eac60e5ded13f 1 parent f8db36a
Thomas Risberg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/step_definitions/uaa.rb
View
4 features/step_definitions/uaa.rb
@@ -47,7 +47,7 @@ def client_token(client_id, client_secret)
def login(username, password)
url = @uaabase + "/login.do"
- response = RestClient.post url, {:username=>username, :password=>password}, {"Accept"=>"application/json"} { |response, request, result| response }
+ response = RestClient.post url, {:username=>username, :password=>password}, {"Accept"=>"application/json"} do |response, request, result| response end
response.should_not == nil
response.code.should == 302
response.headers
@@ -62,7 +62,7 @@ def register_client(client, token)
end
def basic_auth(id, secret)
- "Basic " + Base64::strict_encode64("#{id}:#{secret}")
+ "Basic " + Base64::encode64("#{id}:#{secret}").gsub("\n", "")
end
def get_url(path,headers={})
Please sign in to comment.
Something went wrong with that request. Please try again.