Sha256: 6dc19e4a9793428c5194eea61c2aa8019a26112784db1e8787ce2a0b80e053ff

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 Bytes

Contents

RSpec.configure do |config|
  config.before(:each) do
    # The famous singleton problem
    Bitso.setup do |config|
      config.key = nil
      config.secret = nil
      config.client_id = nil
    end
  end
end

def setup_bitso
  Bitso.setup do |config|
    raise "You must set environment variable BITSO_KEY and BITSO_SECRET with your username and password to run specs." if ENV['BITSO_KEY'].nil? or ENV['BITSO_SECRET'].nil?
    config.key = ENV['BITSO_KEY']
    config.secret = ENV['BITSO_SECRET']
    config.client_id = ENV['BITSO_CLIENT_ID']
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bitso-0.1.5 spec/support/bitso_setup.rb
bitso-0.1.4 spec/support/bitso_setup.rb
bitso-0.1.3 spec/support/bitso_setup.rb
bitso-0.1.2 spec/support/bitso_setup.rb
bitso-0.1.1 spec/support/bitso_setup.rb