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