test/totter/client_test.rb in totter-0.2.13 vs test/totter/client_test.rb in totter-0.2.14

- old
+ new

@@ -26,6 +26,17 @@ assert client.ssl? 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 end