Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Fix broken specs #293

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading