lib/valkyrie/specs/shared_specs/storage_adapter.rb in valkyrie-3.1.4 vs lib/valkyrie/specs/shared_specs/storage_adapter.rb in valkyrie-3.1.5

- old
+ new

@@ -37,10 +37,10 @@ it "can upload a ::File" do # WebMock prevents the request from using send_request_with_body_stream as it can do IRL WebMock.disable! allow(storage_adapter).to receive(:file_mover).and_return(FileUtils.method(:cp)) - File.open(Valkyrie::Engine.root.join("spec", "fixtures", "files", "tn_example.jpg")) do |io_file| + File.open(Valkyrie.root_path.join("spec", "fixtures", "files", "tn_example.jpg")) do |io_file| sha1 = Digest::SHA1.file(io_file).to_s resource = Valkyrie::Specs::CustomResource.new(id: SecureRandom.uuid) expect(uploaded_file = storage_adapter.upload(file: io_file, original_filename: 'foo.jpg', resource: resource, fake_upload_argument: true)).to be_kind_of Valkyrie::StorageAdapter::File