Sha256: cafb22157219a85a8231cba2e5a2f04e3628cad3fb06482006c2fafc67d69481

Contents?: true

Size: 589 Bytes

Versions: 12

Compression:

Stored size: 589 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: 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

12 entries across 12 versions & 2 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/templates/spec/db_spec_helper.rb.tt
kanji-web-0.3.0 lib/kanji/templates/spec/db_spec_helper.rb.tt
kanji-web-0.2.2 lib/kanji/templates/spec/db_spec_helper.rb.tt
kanji-web-0.2.1 lib/kanji/templates/spec/db_spec_helper.rb.tt
kanji-web-0.2.0 lib/kanji/templates/spec/db_spec_helper.rb.tt
kanji-web-0.1.0 lib/kanji/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.5 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.4 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.3 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.2 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.1 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt
dry-web-roda-0.7.0 lib/dry/web/roda/templates/spec/db_spec_helper.rb.tt