self.request.headers["Accept"] = "text/json"
end
+ def json_response
+ @json_response ||= ActiveSupport::JSON.decode @response.body
+ end
+
def authorize_with(api_client_auth_name)
self.request.env['HTTP_AUTHORIZATION'] = "OAuth2 #{api_client_authorizations(api_client_auth_name).api_token}"
end
Thread.current[:user] = nil
end
- def jresponse
- @jresponse ||= ActiveSupport::JSON.decode @response.body
- end
-
def auth auth_fixture
{'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(auth_fixture).api_token}"}
end