spec/spec_helper.rb in boletosimples-0.0.7 vs spec/spec_helper.rb in boletosimples-0.1.1

- old
+ new

@@ -8,9 +8,19 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'pry' require 'boletosimples' +if(ENV['BOLETOSIMPLES_ACCESS_TOKEN'].nil?) + puts "\e[31mWarning: Environment variable BOLETOSIMPLES_ACCESS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m" + ENV['BOLETOSIMPLES_ACCESS_TOKEN'] = 'any-token' +end + +if(ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'].nil?) + puts "\e[31mWarning: Environment variable BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m" + ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'] = 'any-token' +end + RSpec.configure do |config| config.disable_monkey_patching! config.order = :random Kernel.srand config.seed config.filter_run focus: true