psenv/spec/spec_helper.rb

21 lines
454 B
Ruby
Raw Permalink Normal View History

2018-03-22 18:01:53 -04:00
require "bundler/setup"
2018-05-07 11:46:15 -04:00
Bundler.setup
2018-03-22 18:01:53 -04:00
require "psenv"
2018-05-07 11:46:15 -04:00
require "webmock/rspec"
2018-03-28 21:51:39 -04:00
WebMock.disable_net_connect!(allow_localhost: true)
2018-03-22 18:01:53 -04:00
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
config.expect_with :rspec do |c|
c.syntax = :expect
end
end