Sha256: d3a19ee12c95cc8a10b7445f472e0b893a37d7bed52d288437e7ad4379a0ad3f
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' describe Picky::Backend::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 '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::Backend::File::Basic(some/cache/path/to/file.index)' end end end
Version data entries
7 entries across 7 versions & 1 rubygems