Sha256: f032af129a9d90095b13572347516d3aa16af3579199c74a29d6daa938b94599

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

require 'database_cleaner'
DatabaseCleaner.strategy = :deletion

if RSpecCandy::Switcher.rspec_version == 1

  Spec::Runner.configure do |config|
    config.append_before do
      DatabaseCleaner.clean
    end
  end

else

  RSpec.configure do |config|
    config.before do
      DatabaseCleaner.clean
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec_candy-0.5.1 spec/support/database_cleaner.rb
rspec_candy-0.5.0 spec/support/database_cleaner.rb
rspec_candy-0.4.1 spec/support/database_cleaner.rb
rspec_candy-0.4.0 spec/support/database_cleaner.rb