spec/unit/api_access_spec.rb in gds-sso-12.0.0 vs spec/unit/api_access_spec.rb in gds-sso-12.1.0
- old
+ new
@@ -10,18 +10,6 @@
end
it "should consider a json accept header to be an api call" do
expect(GDS::SSO::ApiAccess.api_call?('HTTP_ACCEPT' => 'application/json')).to be_true
end
-
- it "should consider a request with an authorization header to be an oauth api call" do
- expect(GDS::SSO::ApiAccess.oauth_api_call?('HTTP_AUTHORIZATION' => 'Bearer blahblahblah')).to be_true
- end
-
- it "should not consider a request with HTTP basic auth to be an oauth api call" do
- expect(GDS::SSO::ApiAccess.oauth_api_call?('HTTP_AUTHORIZATION' => 'Basic Some basic credentials')).to be_false
- end
-
- it "should not consider a request with an empty authorization header to be an oauth api call" do
- expect(GDS::SSO::ApiAccess.oauth_api_call?('HTTP_AUTHORIZATION' => '')).to be_false
- end
end