Sha256: baee0d95b088f37ccb2bb4cb8f0491a6b65f00c7e65f3050f74a177a271ee914
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
require 'spec_helper' describe Backend::File::Marshal do let(:file) { described_class.new 'some/cache/path/to/file' } describe "dump" do it "delegates to the given hash" do hash = stub :hash hash.should_receive(:dump_marshalled).once.with "some/cache/path/to/file.dump" file.dump hash end end describe "retrieve" do it "raises" do lambda do file.retrieve end.should raise_error("Can't retrieve from marshalled file. Use text file.") end end describe 'to_s' do it 'returns the cache path with the default file extension' do file.to_s.should == 'Backend::File::Marshal(some/cache/path/to/file.dump)' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/backend/file/marshal_spec.rb |