Sha256: d35087e782bb8eeacb6d849185efadc11dbfe0de8d5dbb332882d399744f4f8a

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

require 'spec_helper'

describe Internals::Index::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

15 entries across 15 versions & 1 rubygems

Version Path
picky-2.5.2 spec/lib/internals/index/file/basic_spec.rb
picky-2.5.1 spec/lib/internals/index/file/basic_spec.rb
picky-2.5.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.4.3 spec/lib/internals/index/file/basic_spec.rb
picky-2.4.2 spec/lib/internals/index/file/basic_spec.rb
picky-2.4.1 spec/lib/internals/index/file/basic_spec.rb
picky-2.4.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.3.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.2.1 spec/lib/internals/index/file/basic_spec.rb
picky-2.2.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.1.2 spec/lib/internals/index/file/basic_spec.rb
picky-2.1.1 spec/lib/internals/index/file/basic_spec.rb
picky-2.1.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.0.0 spec/lib/internals/index/file/basic_spec.rb
picky-2.0.0.pre3 spec/lib/internals/index/file/basic_spec.rb