diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f32d5d7..897b937 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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