database_cleaner/spec/spec_helper.rb

29 lines
689 B
Ruby
Raw Normal View History

2018-04-26 14:02:29 -04:00
require "bundler/setup"
2020-02-01 17:32:57 -05:00
require "byebug"
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
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