Sha256: 3b99cfd8a4d76c10e0214523108abd654d5f79991ae124ab98b90f9b10fbe532
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
require 'helper' describe OpenAmplify::Configuration do after do OpenAmplify.reset end describe '.configure' do OpenAmplify::Configuration::VALID_OPTIONS_KEYS.each do |key| it "should set the #{key}" do OpenAmplify.configure do |config| config.send("#{key}=", key) OpenAmplify.send(key).must_equal key end end end end describe '.user_agent' do it 'should return the default user agent' do OpenAmplify.user_agent.must_equal OpenAmplify::Configuration::DEFAULT_USER_AGENT end end describe '.endpoint' do it 'should return the default endpoint' do OpenAmplify.endpoint.must_equal OpenAmplify::Configuration::DEFAULT_ENDPOINT end end describe '.http_method' do it 'should return the default http method' do OpenAmplify.method.must_equal OpenAmplify::Configuration::DEFAULT_HTTP_METHOD end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openamplify-0.3.0 | test/openamplify/configuration_test.rb |