Skip to content

Commit

Permalink
Merge pull request #6532 from samvera/abel-fix_browse_catalog_spec.rb
Browse files Browse the repository at this point in the history
Valkyrization: Fix failing tests in browse_catalog_spec.rb
  • Loading branch information
dlpierce authored Dec 12, 2023
2 parents 734e24a + 9fd3f60 commit ffe44d2
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions spec/features/browse_catalog_spec.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
# frozen_string_literal: true
RSpec.describe "Browse catalog:", type: :feature, clean_repo: true do
let!(:jills_work) do
GenericWork.new do |work|
work.title = ["Jill's Research"]
(1..25).each do |i|
work.keyword << ["keyword#{format('%02d', i)}"]
end
work.apply_depositor_metadata('jilluser')
work.read_groups = ['public']
work.save!
end
valkyrie_create(:monograph,
title: ["Jill's Research"],
keyword: (1..25).to_a.map { |i| "keyword#{format('%02d', i)}" },
read_groups: ['public'])
end

let!(:jacks_work) do
GenericWork.new do |work|
work.title = ["Jack's Research"]
work.keyword = ['jacks_keyword']
work.apply_depositor_metadata('jackuser')
work.read_groups = ['public']
work.save!
end
valkyrie_create(:monograph,
title: ["Jack's Research"],
keyword: ['jacks_keyword'],
read_groups: ['public'])
end

before do
Expand Down

0 comments on commit ffe44d2

Please sign in to comment.