Sha256: f0679b8448617718b5b268e51394b4a7fb84ae0b189ff07a0f84c647d2b0d0e9

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 Bytes

Contents

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

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

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

  config.around(:each, db: true) do |example|
    DatabaseCleaner.start
    example.run
    DatabaseCleaner.clean
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scenic-1.4.1 spec/spec_helper.rb
scenic-1.4.0 spec/spec_helper.rb
scenic-1.3.0 spec/spec_helper.rb
scenic-1.2.0 spec/spec_helper.rb
scenic-1.1.1 spec/spec_helper.rb
scenic-1.1.0 spec/spec_helper.rb