Sha256: 68fde0fb23eb4c2186ce62da87ea61c8197d8a5858705785769c19d263025208

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

ENV["RACK_ENV"] = "test"

require File.expand_path("../../config/environment", __FILE__)

if Rails.env.production?
  abort("The Rails environment is running in production mode!")
end

require "rspec/rails"

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

module SystemTestHelper
  # Extend this module in spec/support/system/*.rb
  include Formulaic::Dsl
end

RSpec.configure do |config|
  config.include SystemTestHelper, type: :system
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = true
end

ActiveRecord::Migration.maintain_test_schema!

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
suspenders-20230113.0 templates/rails_helper.rb
suspenders-1.56.1 templates/rails_helper.rb
suspenders-1.55.1 templates/rails_helper.rb
suspenders-1.55.0 templates/rails_helper.rb
suspenders-1.54.1 templates/rails_helper.rb
suspenders-1.54.0 templates/rails_helper.rb