Sha256: 8e2cf2ef566e565ec46c3246fb0a42b9b863cc3ccc7421774a729aa0c91d5c35

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

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

require File.expand_path("dummy/config/environment", __dir__)
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

7 entries across 7 versions & 2 rubygems

Version Path
scenic-jets-1.5.5 spec/spec_helper.rb
scenic-jets-1.5.4 spec/spec_helper.rb
scenic-1.5.4 spec/spec_helper.rb
scenic-1.5.3 spec/spec_helper.rb
scenic-1.5.2 spec/spec_helper.rb
scenic-1.5.1 spec/spec_helper.rb
scenic-1.5.0 spec/spec_helper.rb