Sha256: 450545a76291ce1261ce34ab40a97e25778aad22951faf0d42d06cc5fac81650

Contents?: true

Size: 665 Bytes

Versions: 1

Compression:

Stored size: 665 Bytes

Contents

require 'spec_helper'

describe Backend::File::Basic do
  
  let(:file) { described_class.new 'some/cache/path/to/file' }
  
  describe 'backup_file_path_of' do
    it 'returns a backup path relative to the path' do
      file.backup_file_path_of('some/path/to/some.index').should == 'some/path/to/backup/some.index'
    end
  end
  
  describe 'to_s' do
    it 'returns the cache path with the default file extension' do
      file.to_s.should == 'some/cache/path/to/file.index'
    end
  end
  
  describe 'backup_directory' do
    it "returns the cache path's backup path" do
      file.backup_directory.should == 'some/cache/path/to/backup'
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.6.0 spec/lib/backend/file/basic_spec.rb