Sha256: cf844697d682d39092abf5165bbe0037b1dbba81c0f70718331c0cd3177eeeef
Contents?: true
Size: 466 Bytes
Versions: 25
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples 'a Valkyrie::StorageAdapter::File' do before do raise 'adapter must be set with `let(:file)`' unless defined? file end subject { file } it { is_expected.to respond_to(:read) } it { is_expected.to respond_to(:rewind) } it { is_expected.to respond_to(:id) } describe "#disk_path" do it "returns an existing disk path" do expect(File.exist?(file.disk_path)).to eq true end end end
Version data entries
25 entries across 25 versions & 1 rubygems