spec/rack/oauth2/server/authorize/code_spec.rb in rack-oauth2-1.10.1 vs spec/rack/oauth2/server/authorize/code_spec.rb in rack-oauth2-1.11.0
- old
+ new
@@ -49,9 +49,9 @@
response.status.should == 302
error_message = {
error: :access_denied,
error_description: Rack::OAuth2::Server::Authorize::ErrorMethods::DEFAULT_DESCRIPTION[:access_denied]
}
- response.location.should == "#{redirect_uri}?#{error_message.to_query}&state=state"
+ response.location.should == "#{redirect_uri}?#{error_message.to_query.gsub('+', '%20')}&state=state"
end
end
end