spec/spec_helper.rb in eeny-meeny-2.2.2 vs spec/spec_helper.rb in eeny-meeny-2.3.0
- old
+ new
@@ -1,30 +1,17 @@
require 'simplecov'
-require 'simplecov-rcov'
-require 'codeclimate-test-reporter'
require 'active_support/time'
-
-SimpleCov.start do
- formatter SimpleCov::Formatter::MultiFormatter.new([
- SimpleCov::Formatter::HTMLFormatter,
- SimpleCov::Formatter::RcovFormatter,
- CodeClimate::TestReporter::Formatter])
- add_group('EenyMeeny', 'lib/eeny-meeny')
- add_group('Rake Tasks', 'lib/tasks')
- add_group('Specs', 'spec')
-end
-
require 'rspec'
require 'yaml'
require 'mock_rack_app'
-
require 'eeny-meeny'
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = "random"
+ config.expose_dsl_globally = true
config.before(:suite) do
Time.zone = 'UTC'
end
@@ -39,7 +26,6 @@
config.before(:each, empty_experiments: true) do
EenyMeeny.configure do |config|
config.experiments = YAML.load_file(File.join('spec','fixtures','empty_experiments.yml'))
end
end
-
end