Sha256: 06ce7a7c63d88df8a2dabd7f1f82f92580f391b0d8dbe8bc3c7d0a1e8250ded1

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require File.expand_path('../../config/environment', __FILE__)
abort('DATABASE_URL environment variable is set') if ENV['DATABASE_URL']

require 'rspec/rails'

Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |file| require file }

RSpec.configure do |config|
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!

  config.filter_rails_from_backtrace!
  # arbitrary gems may also be filtered via:
  # config.filter_gems_from_backtrace('gem name')
end

ActiveRecord::Migration.maintain_test_schema!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
welaika-suspenders-2.28.0 templates/rails_helper.rb
welaika-suspenders-2.27.0 templates/rails_helper.rb