Sha256: 3a8019904f401892c17014384a88fcf6405babeec73eb20a0d59714a46c815e8

Contents?: true

Size: 826 Bytes

Versions: 2

Compression:

Stored size: 826 Bytes

Contents

require 'spec_helper'

describe CephStorage::StorageObject::FileStorageObject do
  let(:config) { cluster_config }
  let(:spconfig) { spec_config }
  let(:object_name) { "/tmp/#{spconfig[:pool][:object_name]}" }
  let(:storage_object) do
    CephStorage::StorageObject::FileStorageObject.new(object_name, 'w+')
  end
  subject { storage_object }

  it 'should be a FileStorageObject' do
    expect(subject).to be_a ::CephStorage::StorageObject::FileStorageObject
  end

  it 'should be a ::File' do
    expect(subject).to be_a ::File
  end

  it 'should be a StorageObject' do
    expect(subject).to be_a ::CephStorage::StorageObject
  end

  it 'should respond to write_file' do
    expect(subject).to respond_to :write_file
  end

  it 'should respond to read_file' do
    expect(subject).to respond_to :read_file
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceph_storage-0.1.1 spec/ceph_storage_file_storage_object_spec.rb
ceph_storage-0.1.0 spec/ceph_storage_file_storage_object_spec.rb