2018-04-26 14:02:29 -04:00
|
|
|
require "bundler/setup"
|
2020-02-01 17:32:57 -05:00
|
|
|
require "byebug"
|
2010-05-30 23:18:57 -04:00
|
|
|
|
2020-04-06 22:07:06 -04:00
|
|
|
if ENV['COVERAGE'] == 'true'
|
|
|
|
require "simplecov"
|
|
|
|
|
|
|
|
if ENV['CI'] == 'true'
|
|
|
|
require 'codecov'
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
|
|
|
puts "required codecov"
|
|
|
|
end
|
|
|
|
|
|
|
|
SimpleCov.start
|
|
|
|
puts "required simplecov"
|
|
|
|
end
|
|
|
|
|
2020-04-24 15:10:42 -04:00
|
|
|
require "database_cleaner-core"
|
|
|
|
|
2012-07-08 06:51:27 -04:00
|
|
|
RSpec.configure do |config|
|
2018-04-26 12:29:13 -04:00
|
|
|
# These two settings work together to allow you to limit a spec run
|
|
|
|
# to individual examples or groups you care about by tagging them with
|
|
|
|
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
|
|
|
# get run.
|
|
|
|
config.filter_run :focus
|
|
|
|
config.run_all_when_everything_filtered = true
|
2018-04-30 22:31:44 -04:00
|
|
|
|
|
|
|
config.disable_monkey_patching!
|
2009-02-26 23:42:20 -05:00
|
|
|
end
|