test/test_configuration.rb in whatser-0.2.0 vs test/test_configuration.rb in whatser-0.3.0

- old
+ new

@@ -4,23 +4,25 @@ def reset_defaults Whatser::Client.configure do |config| config.api_key = nil config.api_secret = nil config.oauth_token = nil - end + config.logger = nil + end end def test_valid_options_keys - expected = [:api_key,:api_secret,:username,:password,:oauth_token,:api_uri,:redirect_uri] + expected = [:api_key,:api_secret,:username,:password,:oauth_token,:api_uri,:redirect_uri,:logger] 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 nil, client.logger assert_equal Whatser::Configuration::DEFAULT_API_URI, client.api_uri end end \ No newline at end of file