Skip to content

Commit

Permalink
Merge pull request #6629 from samvera/updates_rake_spec
Browse files Browse the repository at this point in the history
Converts collections in `spec/tasks/rake_spec.rb`.
  • Loading branch information
dlpierce authored Jan 23, 2024
2 parents c2534de + 9db3b01 commit a55c240
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/tasks/rake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@
let(:other_collection_type) { FactoryBot.create(:collection_type) }

let(:collections_with_legacy_gids) do
[FactoryBot.valkyrie_create(:hyrax_collection, collection_type_gid: "gid://internal/sometext/#{collection_type.id}"),
FactoryBot.valkyrie_create(:hyrax_collection, collection_type_gid: "gid://internal/sometext/#{other_collection_type.id}")]
[FactoryBot.valkyrie_create(:pcdm_collection, collection_type_gid: "gid://internal/sometext/#{collection_type.id}"),
FactoryBot.valkyrie_create(:pcdm_collection, collection_type_gid: "gid://internal/sometext/#{other_collection_type.id}")]
end

before do
3.times do
FactoryBot.valkyrie_create(:hyrax_collection, collection_type_gid: collection_type.to_global_id)
FactoryBot.valkyrie_create(:hyrax_collection, collection_type_gid: other_collection_type.to_global_id)
FactoryBot.valkyrie_create(:pcdm_collection, collection_type_gid: collection_type.to_global_id)
FactoryBot.valkyrie_create(:pcdm_collection, collection_type_gid: other_collection_type.to_global_id)
end
end

Expand Down

0 comments on commit a55c240

Please sign in to comment.