Sha256: cf4e4bcbc5ccd7f26c48721ce310d0f1ab909a8f70e97d9f93008d728eddf52e

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper.rb"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require "bundler"
Bundler.require(:default, :development)

require "savon/mock/spec_helper"

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.start
else
  require 'coveralls'
  Coveralls.wear!
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.mock_with :rspec 
end

def f method, response
  File.read File.join(File.expand_path("../fixtures", __FILE__), method.to_s, "#{response.to_s}.xml")
end

require 'profitbricks'

HTTPI.log = false

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
profitbricks-1.1.1 spec/spec_helper.rb
profitbricks-1.1.0 spec/spec_helper.rb
profitbricks-1.0.3 spec/spec_helper.rb