test/totter/client_test.rb in totter-0.4.0 vs test/totter/client_test.rb in totter-0.4.1

- old
+ new

@@ -17,9 +17,15 @@ client = Totter::Client.new assert_equal 'https://api.seesaw.co/v1/', client.base_url client = Totter::Client.new(:api_scheme => 'http', :api_host => 'example.com', :api_version => 42) assert_equal 'http://example.com/v42/', client.base_url + + client = Totter::Client.new(:api_url => 'http://example.com') + assert_equal 'http://example.com/v1/', client.base_url + + client = Totter::Client.new(:api_url => 'http://localhost:3000') + assert_equal 'http://localhost:3000/v1/', client.base_url end def test_ssl? client = Totter::Client.new assert client.ssl?