Skip to content

Commit

Permalink
🧹 Fix broken specs
Browse files Browse the repository at this point in the history
Closes #291

Related to:

- #291
  • Loading branch information
jeremyf committed Nov 20, 2023
1 parent e42cfd2 commit 3a9785f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/actors/iiif_print/actors/file_set_actor_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# override to add PDF splitting for file sets and remove splitting upon fileset delete

# Depending on whether we have an uploaded file or a remote url, the sequence of calling
# attach_to_work and create_content will switch.
# Depending on whether we have an uploaded file or a remote url, the sequence of calling
# attach_to_work and create_content will switch.
module IiifPrint
module Actors
module FileSetActorDecorator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

RSpec.describe IiifPrint::SplitPdfs::DerivativeRodeoSplitter do
let(:filename) { __FILE__ }
let(:work) { double(MyWork, aark_id: '12345') }
let(:work) { double(MyWork, id: 'id-12345', aark_id: '12345') }
let(:file_set) { FileSet.new.tap { |fs| fs.save!(validate: false) } }
let(:location_stub) { double(DerivativeRodeo::StorageLocations::BaseLocation, exist?: true) }

Expand Down
2 changes: 1 addition & 1 deletion spec/services/iiif_print/derivative_rodeo_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

RSpec.describe IiifPrint::DerivativeRodeoService do
let(:work) { double({ described_class.parent_work_identifier_property_name => 'hello-1234-id' }) }
let(:work) { double("Work", { :id => 'work-5678', described_class.parent_work_identifier_property_name => 'hello-1234-id' }) }
let(:file_set) { FileSet.new.tap { |fs| fs.save!(validate: false) } }
let(:generator) { DerivativeRodeo::Generators::CopyGenerator }
let(:output_extension) { "rb" }
Expand Down

0 comments on commit 3a9785f

Please sign in to comment.