Sha256: 94b375617e444c140f456cd6a25fee5054984950393410a4fa8e661fa364b3bf

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require "database_cleaner"

require File.expand_path("dummy/config/environment", __dir__)
require "support/rails_configuration_helpers"
require "support/generator_spec_setup"
require "support/view_definition_helpers"

RSpec.configure do |config|
  config.order = "random"
  config.include ViewDefinitionHelpers
  config.include RailsConfigurationHelpers
  DatabaseCleaner.strategy = :transaction

  config.around(:each, db: true) do |example|
    ActiveRecord::SchemaMigration.create_table

    DatabaseCleaner.start
    example.run
    DatabaseCleaner.clean
  end

  if defined? ActiveSupport::Testing::Stream
    config.include ActiveSupport::Testing::Stream
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scenic-1.8.0 spec/spec_helper.rb
scenic-1.7.0 spec/spec_helper.rb
scenic-1.6.0 spec/spec_helper.rb