From 43e9d34ab8ba2cd7c680dbc9257ee19b3f129785 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Mon, 1 Jul 2024 14:53:14 -0500 Subject: [PATCH] Simplify spec --- spec/requests/iiif_auth_request_spec.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spec/requests/iiif_auth_request_spec.rb b/spec/requests/iiif_auth_request_spec.rb index da284371..78deab19 100644 --- a/spec/requests/iiif_auth_request_spec.rb +++ b/spec/requests/iiif_auth_request_spec.rb @@ -19,17 +19,10 @@ let(:transformation) { IIIF::Image::Transformation.new region:, size:, rotation:, quality:, format: } let(:druid) { 'nr349ct7889' } let(:file_name) { 'image.jp2' } - let(:path) { storage_root.absolute_path } - let(:storage_root) { StorageRoot.new(druid:, file_name:) } - let(:perms) { nil } let(:stacks_file) { StacksFile.new(id: druid, file_name:, cocina: Cocina.new(public_json)) } let(:current_image) { StacksImage.new(stacks_file:, transformation:) } let(:http_client) { instance_double(HTTP::Client) } - before(:each) do - allow(File).to receive(:world_readable?).with(path).and_return(perms) - end - describe "#show" do before do allow_any_instance_of(Projection).to receive(:valid?).and_return(true)