Sha256: d556fe15a0b7cbb2e02886a041cf3a30d0b21468a169bb1455c97e8e41183ce6
Contents?: true
Size: 728 Bytes
Versions: 2
Compression:
Stored size: 728 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.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-3.1.2 | spec/lib/backends/memory/basic_spec.rb |
picky-3.1.1 | spec/lib/backends/memory/basic_spec.rb |