Sha256: 84b4b01a16de9c7f5dad3ffc2db61fbc3c4a1708d2a1593581f28bead1c966d7
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe CukeMem do it "has a memory" do CukeMem.memory.should=={} end it "memorizes strings" do CukeMem.memorize(:key, "value") CukeMem.memory.should == {:key=>"value"} end it "symbolizes keys" do CukeMem.memorize("key", "value") CukeMem.memory.should == {:key=>"value"} end it "regurgitates unremembered strings" do CukeMem.remember("foo%{bar}").should == "foo%{bar}" end it "remembers strings" do CukeMem.memorize(:bar, "baz") CukeMem.remember("foo%{bar}").should=="foobaz" end it "forgets" do CukeMem.memorize(:key, "value") CukeMem.forget CukeMem.memory.should=={} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuke_mem-0.1.1 | spec/cuke_mem_spec.rb |