Sha256: 70d4590c1e95a59e510e15bb124350477318fe8a7173654460acf84bb65126ed

Contents?: true

Size: 1.01 KB

Versions: 13

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

require 'rubygems'
require 'factory_girl'
require 'rails/all'
require 'faker'
require 'rspec/rails'
require 'simplecov'

SimpleCov.start do
  add_filter('spec')
  add_filter('sample')
end

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('dummy/config/environment.rb', __dir__)

load Rails.root.join('db', 'schema.rb')

FactoryGirl.find_definitions

RSpec.configure do |config|
  config.around do |example|
    ActiveRecord::Base.transaction do
      example.run
      raise ActiveRecord::Rollback
    end
  end

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.disable_monkey_patching!

  config.default_formatter = 'doc' if config.files_to_run.one?
  config.order = :random
  Kernel.srand config.seed

  config.include FactoryGirl::Syntax::Methods
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
aaf-gumboot-2.6.3 spec/spec_helper.rb
aaf-gumboot-2.6.2 spec/spec_helper.rb
aaf-gumboot-2.6.1 spec/spec_helper.rb
aaf-gumboot-2.6.0 spec/spec_helper.rb
aaf-gumboot-2.5.1 spec/spec_helper.rb
aaf-gumboot-2.5.0 spec/spec_helper.rb
aaf-gumboot-2.4.0 spec/spec_helper.rb
aaf-gumboot-2.2.0 spec/spec_helper.rb
aaf-gumboot-2.1.4 spec/spec_helper.rb
aaf-gumboot-2.1.3 spec/spec_helper.rb
aaf-gumboot-2.1.1 spec/spec_helper.rb
aaf-gumboot-2.1.0 spec/spec_helper.rb
aaf-gumboot-2.0.1 spec/spec_helper.rb