Sha256: 15fba84f9c27ae547edccead254eefe61b35256c09fecf9a06c8af0f53d33379

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

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

require 'rails/all'
require 'dummy/application'

require 'rspec/rails'

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

Dummy::Application.initialize!

ActiveRecord::Migration.maintain_test_schema!

ActiveRecord::Schema.verbose = false
load 'dummy/db/schema.rb'

RSpec.configure do |config|
  config.use_transactional_fixtures = true

  config.infer_spec_type_from_file_location!

  %i[request].each do |type|
    config.include(Reji::Test::FeatureHelpers, type: type)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reji-1.1.1 spec/spec_helper.rb
reji-1.1.0 spec/spec_helper.rb