Skip to content

Commit

Permalink
Merge pull request #2108 from samvera/hyrax-5-upgrade-ensure-feature-…
Browse files Browse the repository at this point in the history
…specs-run-clean

🧹 Ensure feature specs run clean
  • Loading branch information
jeremyf authored Dec 21, 2023
2 parents 28825f9 + 0616ff2 commit 134c8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
ActiveFedora::SolrService.reset!
# Pass `:clean' (or hyrax's convention of :clean_repo) to destroy objects in fedora/solr and
# start from scratch
if example.metadata[:clean] || example.metadata[:clean_repo]
if example.metadata[:clean] || example.metadata[:clean_repo] || example.metadata[:type] == :feature
## We don't need to do `Hyrax::SolrService.wipe!` so long as we're using `ActiveFedora.clean!`;
## but Valkyrie is coming so be prepared.
# Hyrax::SolrService.wipe!
Expand Down

0 comments on commit 134c8ff

Please sign in to comment.