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