test/totter/client_test.rb in totter-0.3.3 vs test/totter/client_test.rb in totter-0.3.4
- old
+ new
@@ -37,6 +37,19 @@
expected = {}
assert_equal expected, client.create_decision(1)
Totter::Client.unstub!
end
+
+ def test_configuration
+ Totter::Client.configure do |client|
+ client.api_host = 'blah'
+ client.api_scheme = 'gopher'
+ end
+
+ assert_equal 'blah', Totter::Client.new.api_host
+ assert_equal 'gopher', Totter::Client.new.api_scheme
+
+ # forcibly reset the configuration
+ Totter::Client.options = nil
+ end
end