Skip to content

Commit

Permalink
Uses environment variables instead of bit_stamp_details.yml on specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelp committed Sep 26, 2013
1 parent 639ad9b commit d66433a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

def read_bitstamp_yaml
Bitstamp.setup do |config|
yaml = YAML::load( File.read('bit_stamp_details.yml') )
config.key = yaml['bitstamp']['id']
config.secret = yaml['bitstamp']['password']
raise "You must set environment variable BITSTAMP_KEY and BITSTAMP_SECRET with your username and password to run specs." if ENV['BITSTAMP_KEY'].nil? or ENV['BITSTAMP_SECRET'].nil?
config.key = ENV['BITSTAMP_KEY']
config.secret = ENV['BITSTAMP_SECRET']
end
end

0 comments on commit d66433a

Please sign in to comment.