Skip to content

Commit

Permalink
Merge pull request #1071 from sul-dlss/no-stub-cocina
Browse files Browse the repository at this point in the history
Ensure that stubbing rights xml doesn't do anything when cocina is en…
  • Loading branch information
jcoyne authored Dec 15, 2023
2 parents 559a00c + 5c05843 commit c3b9772
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/support/stub_rights_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# are not stubbing a 3rd party class.
module StubRightsXML
def stub_rights_xml(xml)
return if Settings.features.cocina

allow(Purl).to receive(:public_xml).and_return(xml)
end
end
Expand Down

0 comments on commit c3b9772

Please sign in to comment.