Sha256: d4303fc48293e07934f153e074335560cddd381135aa98f2334cbbf305d8b33c

Contents?: true

Size: 798 Bytes

Versions: 7

Compression:

Stored size: 798 Bytes

Contents

require 'spec_helper'

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

# 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 'factory_bot_rails'

begin
  ActiveRecord::Migration.maintain_test_schema!
rescue ActiveRecord::PendingMigrationError => e
  puts e.to_s.strip
  exit 1
end
RSpec.configure do |config|
  config.use_transactional_fixtures = true

  config.infer_base_class_for_anonymous_controllers = false

  config.order = "random"

  config.infer_spec_type_from_file_location!

  # Filter lines from Rails gems in backtraces.
  config.filter_rails_from_backtrace!

  config.include FactoryBot::Syntax::Methods
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
anoubis-1.0.12 spec/rails_helper.rb
anoubis-1.0.11 spec/rails_helper.rb
anoubis-1.0.10 spec/rails_helper.rb
anoubis-1.0.8 spec/rails_helper.rb
anoubis-1.0.7 spec/rails_helper.rb
anoubis-1.0.1 spec/rails_helper.rb
anoubis-1.0.0 spec/rails_helper.rb