diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0d160047e6..3a250a48a3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -324,7 +324,7 @@ def clean_active_fedora_repository end config.before(:example, :clean_repo) do - clean_active_fedora_repository unless Hyrax.config.disable_wings + Hyrax.config.disable_wings ? Hyrax.persister.wipe! : clean_active_fedora_repository Hyrax::RedisEventStore.instance.then(&:flushdb) # Not needed to clean the Solr core used by ActiveFedora since # clean_active_fedora_repository will wipe that core