Skip to content

Commit

Permalink
Merge pull request #6601 from samvera/abel-fix_sipity_spec.rb
Browse files Browse the repository at this point in the history
Valkyrization: Fix failing tests in `spec/models/sipity_spec.rb`
  • Loading branch information
dlpierce authored Jan 11, 2024
2 parents bb49414 + d43ab67 commit 7b418b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/models/sipity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@
let(:workflow_state) { create(:workflow_state) }

it 'will raise an conversion error if an id has not been assigned' do
object = build(:generic_work)
object = build(:hyrax_work)

expect { described_class.Entity(object) }
.to raise_error Sipity::ConversionError
end

it 'raises a conversion error when there is no matching entity' do
object = create(:generic_work)
object = valkyrie_create(:hyrax_work)

expect { described_class.Entity(object) }
.to raise_error Sipity::ConversionError
end

it 'gives a matching entity' do
object = create(:generic_work)
object = valkyrie_create(:hyrax_work)

entity = Sipity::Entity.create(proxy_for_global_id: object.to_global_id,
entity = Sipity::Entity.create(proxy_for_global_id: Hyrax::GlobalID(object).to_s,
workflow_state: workflow_state,
workflow: workflow_state.workflow)

Expand Down

0 comments on commit 7b418b9

Please sign in to comment.