2018-04-26 11:02:29 -07:00
|
|
|
require "bundler/setup"
|
2020-02-01 14:32:57 -08:00
|
|
|
require "byebug"
|
2010-05-30 21:18:57 -06: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 12:10:42 -07:00
|
|
|
require "database_cleaner-core"
|
|
|
|
|
2012-07-08 13:51:27 +03:00
|
|
|
RSpec.configure do |config|
|
2018-04-26 09:29:13 -07: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 19:31:44 -07:00
|
|
|
|
|
|
|
config.disable_monkey_patching!
|
2009-02-26 21:42:20 -07:00
|
|
|
end
|