Skip to content

Commit

Permalink
read_bitstamp_yaml => setup_bitstamp
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelp committed Sep 26, 2013
1 parent a3c8a1b commit 68005ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/bitstamp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
end

describe :balance, vcr: {cassette_name: 'bitstamp/balance'} do
before { read_bitstamp_yaml }
before { setup_bitstamp }
subject { Bitstamp.balance }
it { should == {"btc_reserved"=>"0", "fee"=>"0.4000", "btc_available"=>"0", "usd_reserved"=>"0", "btc_balance"=>"0", "usd_balance"=>"6953.07", "usd_available"=>"6953.07"} }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/orders_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Bitstamp::Orders do
before { read_bitstamp_yaml }
before { setup_bitstamp }

describe :all, vcr: {cassette_name: 'bitstamp/orders/all'} do
subject { Bitstamp.orders.all }
Expand Down
2 changes: 1 addition & 1 deletion spec/support/bitstamp_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
end
end

def read_bitstamp_yaml
def setup_bitstamp
Bitstamp.setup do |config|
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']
Expand Down
2 changes: 1 addition & 1 deletion spec/transactions_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Bitstamp::UserTransactions do
before { read_bitstamp_yaml }
before { setup_bitstamp }

describe :all, vcr: {cassette_name: 'bitstamp/user_transactions/all'} do
subject { Bitstamp.user_transactions.all }
Expand Down

0 comments on commit 68005ff

Please sign in to comment.