Sha256: 5879a0bb1f9f79a8848f6f389ef4288d4d17fdd8aea660c99af5997c761c2078
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
require 'coveralls' Coveralls.wear! require 'simplecov' SimpleCov.start $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $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 config.run_all_when_everything_filtered = true config.expect_with :rspec do |expectations| expectations.syntax = :expect end config.mock_with :rspec do |mocks| mocks.syntax = :expect mocks.verify_partial_doubles = true end if config.files_to_run.one? config.default_formatter = 'doc' end end # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boletosimples-0.6.0 | spec/spec_helper.rb |
boletosimples-0.5.0 | spec/spec_helper.rb |
boletosimples-0.4.2 | spec/spec_helper.rb |