Skip to content

Commit

Permalink
Merge pull request #2264 from samvera/fix-quick-classificiation-leaky…
Browse files Browse the repository at this point in the history
…-spec

✅ Fix QuickClassificationQuery leaky spec
  • Loading branch information
ShanaLMoore authored Jul 10, 2024
2 parents 00a8e6d + d7f9b85 commit ddfd479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/services/hyrax/quick_classification_query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# OVERRIDE Hyrax v2.9.0
RSpec.describe Hyrax::QuickClassificationQuery, clean_repo: true do
# Ensure Hyrax::ModelRegistry.work_classes is loaded so this spec doesn't leak into other specs
let!(:work_classes) { Hyrax::ModelRegistry.work_classes }
# OVERRIDE: add :work_depositor role -- proper testing requires create permission
let(:user) { create(:user, roles: [:work_depositor]) }

Expand Down

0 comments on commit ddfd479

Please sign in to comment.