Sha256: c9ab49d9faae2c200898d1456f0a5843c381d0a9eddc7def892818e506b3a642
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'spec_helper' describe Backend::File::Marshal do before(:each) do @file = described_class.new "some_cache_path" end describe "dump" do it "delegates to the given hash" do hash = stub :hash hash.should_receive(:dump_marshalled).once.with "some_cache_path.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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.6.0 | spec/lib/backend/file/marshal_spec.rb |