Skip to content

Commit

Permalink
adds allowance for no PI format
Browse files Browse the repository at this point in the history
  • Loading branch information
ekemeyer authored Dec 9, 2024
1 parent 74ec44d commit 47a8f9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/models/physical_instantiation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
expect(physical_instantiation.resource.dump(:ttl)).to match(/ebucore#hasFormat/)
expect(physical_instantiation.format.include?("Test format")).to be true
end
end
it "handles absence of format gracefully" do
physical_instantiation.format = nil
expect(physical_instantiation.resource.dump(:ttl)).not_to match(/ebucore#hasFormat/)
expect(physical_instantiation.format).to be_nil
end
end

context "standard" do
let(:physical_instantiation) { FactoryBot.build(:physical_instantiation) }
Expand Down

0 comments on commit 47a8f9a

Please sign in to comment.