Sha256: 4d51c4d035f0cabde1e9a3a86e2789dbcd226c7d96c6e0b1e35a5b43592767b1

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

require "dry/initializer/rails"
require "pry"
require "database_cleaner"

require_relative "dummy/lib/dummy"

DatabaseCleaner.strategy = :truncation

RSpec.configure do |config|
  config.order = :random
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  # Prepare the Test namespace for constants defined in specs
  config.around(:each) do |example|
    Test = Class.new(Module)
    example.run
    Object.send :remove_const, :Test
    DatabaseCleaner.clean
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-initializer-rails-0.0.3 spec/spec_helper.rb
dry-initializer-rails-0.0.2 spec/spec_helper.rb
dry-initializer-rails-0.0.1 spec/spec_helper.rb