Pass query parameter tests, changing the url_params method to return an array.

This commit is contained in:
laserlemon 2010-10-11 15:52:24 -04:00
parent 83d3a6f2f6
commit bd1153df5d

View file

@ -81,11 +81,11 @@ module SimpleOAuth
end
def signature_params
attributes.to_a + params.to_a + url_params.to_a
attributes.to_a + params.to_a + url_params
end
def url_params
CGI.parse(@uri.query || '')
CGI.parse(@uri.query || '').inject([]){|p,(k,vs)| p + vs.map{|v| [k, v] } }
end
end
end