spec/support/bitstamp_setup.rb in bitstamp-2-0.6.0 vs spec/support/bitstamp_setup.rb in bitstamp-2-0.7.0
- old
+ new
@@ -13,8 +13,8 @@
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']
config.secret = ENV['BITSTAMP_SECRET']
config.client_id = ENV['BITSTAMP_CLIENT_ID']
- config.nonce_parameter_generator= lambda { "#{Time.now.to_i}#{(Time.now.nsec / 1_000_000)}".to_i }
+ config.nonce_parameter_generator= lambda { "#{Time.now.to_i}#{(Time.now.nsec / 1_000_000)}".to_i.to_s }
end
end