Sha256: 75e440d72ed407816704bc247518b3e66ff2a5f90459c28662c52234c2caace3

Contents?: true

Size: 388 Bytes

Versions: 160

Compression:

Stored size: 388 Bytes

Contents

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.clean_with(:deletion)
  end

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each, :js => true) do
    DatabaseCleaner.strategy = :deletion
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

160 entries across 158 versions & 19 rubygems

Version Path
dce_lti-0.6.1 spec/support/database_cleaner.rb
dce_lti-0.6.0 spec/support/database_cleaner.rb
gb-firestarter-0.3.1 templates/database_cleaner_rspec.rb
gb-firestarter-0.3.0 templates/database_cleaner_rspec.rb
dce_lti-0.5.4 spec/support/database_cleaner.rb
dce_lti-0.5.3 spec/support/database_cleaner.rb
dce_lti-0.5.2 spec/support/database_cleaner.rb
dce_lti-0.5.1 spec/support/database_cleaner.rb
dce_lti-0.5.0 spec/support/database_cleaner.rb
jetfuel-1.19.24 templates/database_cleaner_rspec.rb
welaika-suspenders-2.7.1 templates/database_cleaner_rspec.rb
brace-0.1.0 templates/database_cleaner_rspec.rb
brace-0.0.3 templates/database_cleaner_rspec.rb
brace-0.0.1 templates/database_cleaner_rspec.rb
roboparts-0.6.4 templates/database_cleaner_rspec.rb
roboparts-0.6.3 templates/database_cleaner_rspec.rb
roboparts-0.6.2 templates/database_cleaner_rspec.rb
dce_lti-0.4.0 spec/support/database_cleaner.rb
welaika-suspenders-2.7.0 templates/database_cleaner_rspec.rb
gb-firestarter-0.2.0 templates/database_cleaner_rspec.rb