Sha256: 1f910399417c7cd59199afa133fb0da11c990393031f19233c7104668aa86c41

Contents?: true

Size: 277 Bytes

Versions: 17

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

  config.after(:each) do |example|
    if example.example_group_instance.class.metadata[:live]
      DatabaseCleaner.clean
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.5.1 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.5.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.4.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.3.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.2.1 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.2.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.1.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-5.0.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.4.1 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.4.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.3.2 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.3.1 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.3.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.2.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.1.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-4.0.0 spec/acceptance/support/database_cleaner.rb