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

Version Path
valkyrie-2.2.0 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.1.2 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.1.1 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.1.0 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.2 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.1 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC10 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC9 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-1.7.1 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC8 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-1.7.0 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC7 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC6 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC5 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC4 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-1.6.0 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-1.5.1 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-2.0.0.RC3 lib/valkyrie/specs/shared_specs/file.rb
valkyrie-1.5.0 lib/valkyrie/specs/shared_specs/file.rb