Sha256: cb7ae1b5cd3c49ed5bc724f86eb60bb81738b522164cc72331ce85723476e30c
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require "spec_helper_lite" require 'undo/storage/memory' describe Undo::Storage::Memory do let(:object) { double :object } it "stores any object" do subject.store 123, object expect(subject.fetch 123).to eq object end it "deletes stored object" do subject.store 123, object subject.delete 123 expect { subject.fetch 123 }.to raise_error(KeyError) end it "accepts options" do options = { foo: :bar } expect do subject.store 123, object, options subject.fetch 123, options subject.delete 123, options end.not_to raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-1.0.0 | spec/undo/storage/memory_spec.rb |