Sha256: 35065f22ec680e2b96289656946c6d294432cc5751e88d6049c30f64b6424c93

Contents?: true

Size: 1.15 KB

Versions: 15

Compression:

Stored size: 1.15 KB

Contents

require 'simplecov'
require 'simplecov-summary'

SimpleCov.start do
  command_name File.basename(ENV['BUNDLE_GEMFILE'], '.gemfile')

  add_filter '/spec/'

  add_group 'DSL',          'lib/protector/dsl.rb'
  add_group 'Railtie',      'lib/protector/engine.rb'
  add_group 'ActiveRecord', 'lib/protector/adapters/active_record'
  add_group 'Sequel',       'lib/protector/adapters/sequel'

  at_exit do; end
end

Bundler.require

require_relative 'contexts/paranoid'
require_relative 'examples/model'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.after(:suite) do
    if SimpleCov.running
      silence_stream(STDOUT) do
        SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result)
      end

      SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result)
    end
  end

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
protector-0.7.7 spec/spec_helpers/boot.rb
protector-0.7.6 spec/spec_helpers/boot.rb
protector-0.7.4 spec/spec_helpers/boot.rb
protector-0.7.3 spec/spec_helpers/boot.rb
protector-0.7.2 spec/spec_helpers/boot.rb
protector-0.7.1 spec/spec_helpers/boot.rb
protector-0.7.0 spec/spec_helpers/boot.rb
protector-0.6.4 spec/spec_helpers/boot.rb
protector-0.6.3 spec/spec_helpers/boot.rb
protector-0.6.2 spec/spec_helpers/boot.rb
protector-0.6.1 spec/spec_helpers/boot.rb
protector-0.6.0 spec/spec_helpers/boot.rb
protector-0.6.0.beta.1 spec/spec_helpers/boot.rb
protector-0.5.5 spec/spec_helpers/boot.rb
protector-0.5.4 spec/spec_helpers/boot.rb