Sha256: 4d7caa1b8e098c157f44218c3294ec9caa7cfad0078a4e4dadca32a283202aa3
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Machinist::Warehouse do it "should store and retrieve values" do warehouse = Machinist::Warehouse.new warehouse[1, 2] = "example" warehouse[1, 2].should == "example" end it "should return an empty array for a new key" do warehouse = Machinist::Warehouse.new warehouse[1, 2].should == [] warehouse[3, 4] << "example" warehouse[3, 4].should == ["example"] end it "should clone" do warehouse = Machinist::Warehouse.new warehouse[1, 2] = "example" warehouse.clone.should == warehouse end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
machinist-2.0.0.beta2 | spec/warehouse_spec.rb |
machinist-2.0.0.beta1 | spec/warehouse_spec.rb |