Sha256: 3f573248bdbbf03e8b3459f6d664cacd2d4b3c7429e081dce9c94c358109c117

Contents?: true

Size: 597 Bytes

Versions: 11

Compression:

Stored size: 597 Bytes

Contents

require_relative "spec_helper"

<%= config[:camel_cased_app_name] %>::Container.start :persistence

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: Test::DatabaseHelpers.db].strategy = :truncation

RSpec.configure do |config|
  config.include Test::DatabaseHelpers

  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

11 entries across 11 versions & 2 rubygems

Version Path
dry-web-roda-0.14.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.12.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.11.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.10.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.9.1 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.9.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.8.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt