Sha256: b04f2f30b14490ac4637db3d7f84da967c9083622cfbadeaa3ea155f223dd7d5

Contents?: true

Size: 1012 Bytes

Versions: 5

Compression:

Stored size: 1012 Bytes

Contents

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.before(:suite) do
    Time.zone = 'UTC'
  end

  config.before(:each) do
    EenyMeeny.reset! # reset configuration before every test.
  end
  config.before(:each, experiments: true) do
    EenyMeeny.configure do |config|
      config.experiments = YAML.load_file(File.join('spec','fixtures','experiments.yml'))
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eeny-meeny-2.2.1 spec/spec_helper.rb
eeny-meeny-2.2.0 spec/spec_helper.rb
eeny-meeny-2.1.4 spec/spec_helper.rb
eeny-meeny-2.1.3 spec/spec_helper.rb
eeny-meeny-2.1.2 spec/spec_helper.rb