Sha256: eaf07658c0aa8dc507f82dc7dd0fadd9c9eecd898bc4a37aa52e46330aa16ac7
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' describe Picky::Backends::Memory::Basic do let(:basic) { described_class.new 'some/cache/path/to/file' } describe 'empty' do it 'returns the container that is used for indexing' do basic.empty.should == {} end end describe 'backup_file_path_of' do it 'returns a backup path relative to the path' do basic.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 basic.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 basic.to_s.should == 'Picky::Backends::Memory::Basic(some/cache/path/to/file.memory.index)' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
picky-3.2.0 | spec/lib/backends/memory/basic_spec.rb |
picky-3.1.13 | spec/lib/backends/memory/basic_spec.rb |
picky-3.1.12 | spec/lib/backends/memory/basic_spec.rb |