Sha256: be87a17b8634c71a39c2619aecb028c9966966ba3a84b3e6d8fb526324e9f6a3

Contents?: true

Size: 755 Bytes

Versions: 9

Compression:

Stored size: 755 Bytes

Contents

require 'spec_helper'

describe Picky::Backends::Memory::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.memory.index').should == 'some/path/to/backup/some.memory.index'
    end
  end
  
  describe 'backup_directory' do
    it "returns the cache path's backup path" do
      file.backup_directory('some/cache/path/to/file').should == 'some/cache/path/to/backup'
    end
  end
  
  describe 'to_s' do
    it 'returns the cache path with the default file extension' do
      file.to_s.should == 'Picky::Backends::Memory::Basic(some/cache/path/to/file.memory.index)'
    end
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
picky-3.1.11 spec/lib/backends/memory/basic_spec.rb
picky-3.1.10 spec/lib/backends/memory/basic_spec.rb
picky-3.1.9 spec/lib/backends/memory/basic_spec.rb
picky-3.1.8 spec/lib/backends/memory/basic_spec.rb
picky-3.1.7 spec/lib/backends/memory/basic_spec.rb
picky-3.1.6 spec/lib/backends/memory/basic_spec.rb
picky-3.1.5 spec/lib/backends/memory/basic_spec.rb
picky-3.1.4 spec/lib/backends/memory/basic_spec.rb
picky-3.1.3 spec/lib/backends/memory/basic_spec.rb