Sha256: 5836c1599eb10e6a7fa772f282631d45648b3b8924ad9059fe54cfab59319a21

Contents?: true

Size: 403 Bytes

Versions: 24

Compression:

Stored size: 403 Bytes

Contents

require 'database_cleaner'
require 'active_fedora/cleaner'
RSpec.configure do |config|
  config.before :each do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end

  config.before :each do |example|
    unless example.metadata[:type] == :view || example.metadata[:no_clean]
      ActiveFedora::Cleaner.clean!
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
geo_works-0.2.0 spec/support/database_cleaner.rb
geo_works-0.1.4 spec/support/database_cleaner.rb
geo_works-0.1.3 spec/support/database_cleaner.rb
geo_works-0.1.2 spec/support/database_cleaner.rb
geo_works-0.1.1 spec/support/database_cleaner.rb
geo_works-0.1.0 spec/support/database_cleaner.rb
geo_concerns-0.3.4 spec/support/database_cleaner.rb
geo_concerns-0.3.3 spec/support/database_cleaner.rb
geo_concerns-0.3.2 spec/support/database_cleaner.rb
geo_concerns-0.3.1 spec/support/database_cleaner.rb
geo_concerns-0.3.0 spec/support/database_cleaner.rb
geo_concerns-0.2.0 spec/support/database_cleaner.rb
geo_concerns-0.1.1 spec/support/database_cleaner.rb
geo_concerns-0.1.0 spec/support/database_cleaner.rb
geo_concerns-0.0.10 spec/support/database_cleaner.rb
geo_concerns-0.0.9 spec/support/database_cleaner.rb
geo_concerns-0.0.8 spec/support/database_cleaner.rb
geo_concerns-0.0.7 spec/support/database_cleaner.rb
geo_concerns-0.0.6 spec/support/database_cleaner.rb
geo_concerns-0.0.5 spec/support/database_cleaner.rb