Sha256: add5637bf1f0d9e2f6c50defbcdf50414ab83248eacaec774697eb8a6f6c5297

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

require 'simplecov'
SimpleCov.start do
  coverage_dir 'doc/coverage'
  add_filter 'spec'
  add_filter 'lib/config_scripts/tasks.rb'
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'timecop'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.expand_path("../support/*.rb", __FILE__)].each { |f| puts f; require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  # 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"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, remove the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = true

  config.filter_run focus: true
  config.run_all_when_everything_filtered = true
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
config_scripts-0.4.7 spec/spec_helper.rb
config_scripts-0.4.6 spec/spec_helper.rb
config_scripts-0.4.5 spec/spec_helper.rb
config_scripts-0.4.4 spec/spec_helper.rb
config_scripts-0.4.3 spec/spec_helper.rb
config_scripts-0.4.2 spec/spec_helper.rb