Sha256: ab1e6fc39d1107f9f41b68a5fd67efcfdfdfb3b94ce3b2c79be587547371a967

Contents?: true

Size: 236 Bytes

Versions: 23

Compression:

Stored size: 236 Bytes

Contents

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

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

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
ts-sidekiq-delta-0.3.0 spec/acceptance/support/database_cleaner.rb
ts-delayed-delta-2.1.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.2.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.1.4 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.1.3 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.1.2 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.1.1 spec/acceptance/support/database_cleaner.rb
ts-delayed-delta-2.0.2 spec/acceptance/support/database_cleaner.rb
ts-resque-delta-2.0.0 spec/acceptance/support/database_cleaner.rb
ts-delayed-delta-2.0.1 spec/acceptance/support/database_cleaner.rb
ts-sidekiq-delta-0.2.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.1.0 spec/acceptance/support/database_cleaner.rb
ts-sidekiq-delta-0.1.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.6 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.5 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.4 spec/acceptance/support/database_cleaner.rb
ts-delayed-delta-2.0.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.3 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.2 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.1 spec/acceptance/support/database_cleaner.rb