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
thinking-sphinx-3.0.0 spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.0.rc spec/acceptance/support/database_cleaner.rb
thinking-sphinx-3.0.0.pre spec/acceptance/support/database_cleaner.rb