machinist 2.0.0.beta2 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -5
- data/Gemfile +2 -8
- data/Gemfile.lock +47 -0
- data/README.markdown +228 -18
- data/Rakefile +5 -20
- data/VERSION +1 -1
- data/lib/generators/machinist/install/install_generator.rb +10 -12
- data/lib/generators/machinist/install/templates/machinist.rb.erb +0 -3
- data/lib/machinist.rb +0 -12
- data/lib/machinist/active_record/blueprint.rb +0 -25
- data/lib/machinist/blueprint.rb +1 -1
- data/lib/machinist/lathe.rb +3 -4
- data/lib/machinist/machinable.rb +2 -8
- data/lib/machinist/version.rb +3 -0
- data/machinist.gemspec +20 -71
- data/spec/active_record_spec.rb +9 -36
- data/spec/blueprint_spec.rb +10 -8
- data/spec/exceptions_spec.rb +2 -2
- data/spec/inheritance_spec.rb +6 -6
- data/spec/machinable_spec.rb +6 -6
- data/spec/spec_helper.rb +0 -4
- metadata +103 -30
- data/lib/machinist/configuration.rb +0 -32
- data/lib/machinist/shop.rb +0 -52
- data/lib/machinist/warehouse.rb +0 -36
- data/spec/shop_spec.rb +0 -94
- data/spec/warehouse_spec.rb +0 -24
data/spec/warehouse_spec.rb
DELETED
@@ -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
|