Sha256: 3d2a96a83d31fc0e618086d867d9d1a14dedb60d135c196cd79b732de6a68080
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
require 'spec_helper' describe "ApiAuthenticator configuration" do it "by default request type should be URL" do expect(ApiAuthenticator.request_type).to eql(ApiAuthenticator::URL_REQUEST_TYPE) end it "can assign request type to :path" do ApiAuthenticator.request_type = ApiAuthenticator::PATH_REQUEST_TYPE expect(ApiAuthenticator.request_type).to eql(ApiAuthenticator::PATH_REQUEST_TYPE) end it "should throw an ArgumentError if request_type isn't acceptable" do expect do ApiAuthenticator.request_type = 'foo' end.to raise_error(ArgumentError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_authenticator-0.3.0 | spec/configuration_spec.rb |