test/unit/peddler/test_client.rb in peddler-0.7.3 vs test/unit/peddler/test_client.rb in peddler-0.7.5
- old
+ new
@@ -22,11 +22,15 @@
Excon.stubs.clear
Excon.defaults.delete(:mock)
end
def test_configures_path
- @klass.path('Foo')
- assert @client.aws_endpoint.match(/Foo$/)
+ @klass.path('/Foo')
+ assert @client.aws_endpoint.match(%r{/Foo$})
+ end
+
+ def test_default_path
+ assert_equal '/', @klass.path
end
def test_has_user_agent
assert @client.connection.data[:headers].has_key?('User-Agent')
end