spec/spec_helper.rb in profitbricks-1.0.1 vs spec/spec_helper.rb in profitbricks-1.0.3
- old
+ new
@@ -35,5 +35,18 @@
Profitbricks.configure do |config|
config.username = "none"
config.password = "none"
config.polling_interval = 0.1
end
+
+client = Savon::Client.new do |globals|
+ globals.namespace "http://ws.api.profitbricks.com/"
+ globals.endpoint "https://api.profitbricks.com/1.2"
+ globals.convert_request_keys_to :lower_camelcase
+ globals.raise_errors true
+ globals.log Profitbricks::Config.log
+ globals.pretty_print_xml true
+ globals.open_timeout 5
+ globals.read_timeout 5
+ globals.basic_auth [Profitbricks::Config.username, Profitbricks::Config.password]
+end
+Profitbricks.client = client
\ No newline at end of file