Sha256: ab0ad3c1e9a3baa281815fefb343f70748a6775e57cabdd3b0eef8ff40387f3b

Contents?: true

Size: 677 Bytes

Versions: 21

Compression:

Stored size: 677 Bytes

Contents

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

I18n.enforce_available_locales = true

ActiveZuora.configure(
  :log => !!ENV['DEBUG'],
  :pretty_print_xml => !!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

def now(_message)
  yield
end

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
active_zuora-2.6.0 spec/spec_helper.rb
active_zuora-2.5.4 spec/spec_helper.rb
active_zuora-2.5.3 spec/spec_helper.rb
active_zuora-2.5.2 spec/spec_helper.rb
active_zuora-2.5.1 spec/spec_helper.rb
active_zuora-2.5.0 spec/spec_helper.rb
active_zuora-2.4.1 spec/spec_helper.rb
active_zuora-2.4.0 spec/spec_helper.rb
active_zuora-2.3.1 spec/spec_helper.rb
active_zuora-2.3.0 spec/spec_helper.rb
active_zuora-2.2.7 spec/spec_helper.rb
active_zuora-2.2.6 spec/spec_helper.rb
active_zuora-2.2.5 spec/spec_helper.rb
active_zuora-2.2.4 spec/spec_helper.rb
active_zuora-2.2.3 spec/spec_helper.rb
active_zuora-2.2.2 spec/spec_helper.rb
active_zuora-2.2.1 spec/spec_helper.rb
active_zuora-2.2.0 spec/spec_helper.rb
active_zuora-2.1.4 spec/spec_helper.rb
active_zuora-2.1.3 spec/spec_helper.rb