Sha256: 09fa51a8b3e0cb0ab9fc467556ea27f7a313f4ace924ae8cee04c24cd95cabc3

Contents?: true

Size: 732 Bytes

Versions: 5

Compression:

Stored size: 732 Bytes

Contents

ENV['RAILS_ENV'] = 'test'

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

require 'rspec/rails'
require 'ffaker'

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

# Define the feature Dsl
module Features
  # Extend this module in spec/support/features/*.rb
  include Formulaic::Dsl
end

RSpec.configure do |config|
  config.include Features, type: :feature
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = false

  config.before(:all) do
    Rails.cache.clear
  end
end

ActiveRecord::Migration.maintain_test_schema!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kratos-1.1.0 templates/rails_helper.rb
kratos-1.0.3 templates/rails_helper.rb
kratos-1.0.2 templates/rails_helper.rb
kratos-1.0.1 templates/rails_helper.rb
kratos-1.0.0 templates/rails_helper.rb