Skip to content

Commit

Permalink
Merge pull request #6550 from samvera/abel-fix_by_depositor_spec.rb
Browse files Browse the repository at this point in the history
Valkyrization: Fix failing tests in `by_depositor_spec.rb`
  • Loading branch information
dlpierce authored Jan 2, 2024
2 parents eaf87a6 + 480f25e commit b92e419
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions spec/services/hyrax/statistics/works/by_depositor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
let(:user2) { create(:user) }

before do
gf = build(:generic_work, user: user1, id: '1234567')
gf.update_index
gf = build(:generic_work, user: user2, id: '2345678')
gf.update_index
gf = build(:generic_work, user: user1, id: '3456789')
gf.update_index
gf = build(:generic_work, user: user1, id: '4567890')
gf.update_index
3.times do
valkyrie_create(:hyrax_work, depositor: user1.user_key)
end

valkyrie_create(:hyrax_work, depositor: user2.user_key)
end

subject { described_class.query }
Expand Down

0 comments on commit b92e419

Please sign in to comment.