Sha256: 812f5d0cfab0e9ccafac960f327edbb064277f8730f4dc84f7f1e3ff8210f337

Contents?: true

Size: 611 Bytes

Versions: 15

Compression:

Stored size: 611 Bytes

Contents

require_relative "spec_helper"

<%= config[:camel_cased_app_name] %>::Container.boot! :rom

Dir[SPEC_ROOT.join("support/db/*.rb").to_s].each(&method(:require))
Dir[SPEC_ROOT.join("shared/db/*.rb").to_s].each(&method(:require))

require "database_cleaner"
DatabaseCleaner[:sequel, connection: TestHelpers.db_connection].strategy = :truncation

RSpec.configure do |config|
  config.include TestHelpers
  config.include TestFactories

  config.before :suite do
    DatabaseCleaner.clean_with :truncation
  end

  config.around :each do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

15 entries across 12 versions & 1 rubygems

Version Path
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/flat_project/spec/db_helper.rb.tt
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/umbrella_project/spec/db_helper.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/umbrella_project/spec/db_helper.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/flat_project/spec/db_helper.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/flat_project/spec/db_helper.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/umbrella_project/spec/db_helper.rb.tt
dry-web-roda-0.6.0 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.5.1 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.5.0 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.4.0 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.3.0 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.2.3 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.2.2 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.2.1 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt
dry-web-roda-0.2.0 lib/dry/web/roda/skeletons/umbrella/spec/db_helper.rb.tt