Skip to content

Commit

Permalink
Stub #persisted? per samvera/hyrax#1048 to fix IIIF thumbnail spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed Jun 2, 2017
1 parent 45f093b commit 0bf1604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/services/iiif_thumbnail_path_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
before do
allow(ActiveFedora::Base).to receive(:find).with('s1784k724').and_return(file_set)
allow(file_set).to receive_messages(original_file: file, id: 's1784k724')
# https://github.com/projecthydra/active_fedora/issues/1251
allow(file_set).to receive(:persisted?).and_return(true)
end

context "on a work" do
Expand Down

0 comments on commit 0bf1604

Please sign in to comment.