Sha256: 8e94318e3cef518ea61787a311ec9712311baecf9b1cbf59876c0ba3d0a2f395

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

require 'rubygems'
require 'rspec'
require 'active_zuora'

I18n.enforce_available_locales = true

ActiveZuora.configure(
  :log => ENV['DEBUG'],
  :username => ENV['ZUORA_USER'],
  :password => ENV['ZUORA_PASS']
)

module Z; end
ActiveZuora.generate_classes :inside => Z

def integration_test
  # Block helper.  Integration tests should be wrapped in this block.
  if ENV['ZUORA_USER'] && ENV['ZUORA_PASS']
    yield
  else
    $stderr.puts "Integration tests skipped because ZUORA_USER or ZUORA_PASS are not set."
  end
end

module Tenant
  def self.currency
    ENV['ZUORA_CURRENCY'] || 'USD'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_zuora-2.0.6 spec/spec_helper.rb
active_zuora-2.1.0 spec/spec_helper.rb
active_zuora-2.0.5 spec/spec_helper.rb
active_zuora-2.0.4 spec/spec_helper.rb