machinist 2.0.0.beta2 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
2
-
3
- describe Machinist::Warehouse do
4
-
5
- it "should store and retrieve values" do
6
- warehouse = Machinist::Warehouse.new
7
- warehouse[1, 2] = "example"
8
- warehouse[1, 2].should == "example"
9
- end
10
-
11
- it "should return an empty array for a new key" do
12
- warehouse = Machinist::Warehouse.new
13
- warehouse[1, 2].should == []
14
- warehouse[3, 4] << "example"
15
- warehouse[3, 4].should == ["example"]
16
- end
17
-
18
- it "should clone" do
19
- warehouse = Machinist::Warehouse.new
20
- warehouse[1, 2] = "example"
21
- warehouse.clone.should == warehouse
22
- end
23
-
24
- end