Sha256: 97fab86804fca3328209d7a99c8e14fbd5d5b29088c0b99be10618d59b16ec44
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 Bytes
Contents
require 'helper' class TestConfiguration < Test::Unit::TestCase def reset_defaults Whatser::Client.configure do |config| config.api_key = nil config.api_secret = nil config.oauth_token = nil end end def test_valid_options_keys expected = [:api_key,:api_secret,:username,:password,:oauth_token,:api_uri,:redirect_uri] assert_equal expected, Whatser::Configuration::VALID_OPTIONS_KEYS end def test_defaults_on_inclusion reset_defaults client = Whatser::Client.new assert_equal nil, client.api_key assert_equal nil, client.api_secret assert_equal nil, client.oauth_token assert_equal nil, client.redirect_uri assert_equal Whatser::Configuration::DEFAULT_API_URI, client.api_uri end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whatser-0.2.0 | test/test_configuration.rb |