Sha256: 6aafebd686084c4da888103d074549a7e2915b8e483b6775ba8041ee0a6a3b56

Contents?: true

Size: 834 Bytes

Versions: 12

Compression:

Stored size: 834 Bytes

Contents

# frozen_string_literal: true

ENV['RACK_ENV'] = 'test'

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

abort('DATABASE_URL environment variable is set') if ENV['DATABASE_URL']

require 'rspec/rails'
require 'capybara/rails'

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

begin
  ActiveRecord::Migration.maintain_test_schema!
rescue ActiveRecord::PendingMigrationError => e
  puts e.to_s.strip
  exit 1
end

RSpec.configure do |config|
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = true

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
welaika-suspenders-3.0 templates/rails_helper.rb
welaika-suspenders-2.36 templates/rails_helper.rb
welaika-suspenders-2.35 templates/rails_helper.rb
welaika-suspenders-2.34 templates/rails_helper.rb
welaika-suspenders-2.33 templates/rails_helper.rb
welaika-suspenders-2.32.2 templates/rails_helper.rb
welaika-suspenders-2.32.1 templates/rails_helper.rb
welaika-suspenders-2.32.0 templates/rails_helper.rb
welaika-suspenders-2.31.0 templates/rails_helper.rb
welaika-suspenders-2.30.0 templates/rails_helper.rb
welaika-suspenders-2.29.0 templates/rails_helper.rb
welaika-suspenders-2.29.0.alpha.3 templates/rails_helper.rb