Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec support files for cleaning Fedora and Solr #515

Open
alepbloyd opened this issue Feb 29, 2024 · 0 comments
Open

RSpec support files for cleaning Fedora and Solr #515

alepbloyd opened this issue Feb 29, 2024 · 0 comments

Comments

@alepbloyd
Copy link
Contributor

In RSpec testing, we need to clear:

  • The test database
  • The /test base path for fedora
  • The scholarspace_test solr core.

For convenience, we have a support file doing this for the test database (https://github.com/gwu-libraries/scholarspace-hyrax/blob/master/spec/support/database_cleaner.rb) and should set up similar support files for cleaning Fedora with ActiveFedora::Cleaner.clean! and Solr with:

let(:solr) { Blacklight.default_index.connection }
solr.delete_by_query("*:*")
solr.commit

Or a similar setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant