Sha256: 46039cf00ed499ce6790b9dd7b886c88231c1cf106762d79c425f5f8f838bc42

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'simplecov'
SimpleCov.start 'rails'

require 'spec_helper'

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path('dummy/config/environment', __dir__)

# Prevent database truncation if the environment is production
abort('The Rails environment is running in production mode!') if Rails.env.production?

require 'rspec/rails'

require 'email_spec'
require 'email_spec/rspec'
require 'faker'

Warning[:deprecated] = true
Warning[:experimental] = true

Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each(&method(:require))
Dir[File.expand_path('**/shared_examples/*.rb')].sort.each(&method(:require))

# Checks for pending migrations and applies them before tests are run.
# If you are not using ActiveRecord, you can remove these lines.
begin
  ActiveRecord::Migration.maintain_test_schema!
rescue ActiveRecord::PendingMigrationError => e
  puts e.to_s.strip
  exit 1
end

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!

  config.filter_rails_from_backtrace!
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/rails_helper.rb
lcms-engine-0.5.4 spec/rails_helper.rb
lcms-engine-0.5.3 spec/rails_helper.rb
lcms-engine-0.5.2 spec/rails_helper.rb
lcms-engine-0.5.1 spec/rails_helper.rb
lcms-engine-0.5.0 spec/rails_helper.rb
lcms-engine-0.4.2 spec/rails_helper.rb
lcms-engine-0.4.1 spec/rails_helper.rb
lcms-engine-0.4.0 spec/rails_helper.rb