test/totter/client_test.rb in totter-0.3.4 vs test/totter/client_test.rb in totter-0.3.5

- old
+ new

@@ -27,29 +27,21 @@ client = Totter::Client.new(:api_scheme => 'http') refute client.ssl? end - def test_stub! - client = Totter::Client.new - Totter::Client.stub! - - assert Totter::Client.stubbed? - 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' + client.result_format = :hash end assert_equal 'blah', Totter::Client.new.api_host assert_equal 'gopher', Totter::Client.new.api_scheme + Totter::Client.new.result_format # forcibly reset the configuration Totter::Client.options = nil end + end