Sha256: 91bf77bdf13ea3a3577c8387903172b556b876292728bd0064565233fcca2204
Contents?: true
Size: 627 Bytes
Versions: 18
Compression:
Stored size: 627 Bytes
Contents
require 'test_helper' require 'gds-sso/api_access' class ApiAccessTest < Test::Unit::TestCase def test_internet_explorer_7_accept_header_is_not_considered_to_be_api_call ie7_accept_header = 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ' + 'application/x-shockwave-flash, application/xaml+xml, application/x-ms-xbap, ' + 'application/x-ms-application, */*' refute GDS::SSO::ApiAccess.api_call?('HTTP_ACCEPT' => ie7_accept_header) end def test_application_json_accept_header_is_considered_to_be_api_call assert GDS::SSO::ApiAccess.api_call?('HTTP_ACCEPT' => 'application/json') end end
Version data entries
18 entries across 18 versions & 1 rubygems