1 parent 2b31e77 commit 8c7e2f8Copy full SHA for 8c7e2f8
1 file changed
chef/spec/unit/run_list_spec.rb
@@ -49,6 +49,22 @@
49
@run_list.run_list.length.should == 1
50
@run_list.recipes.length.should == 1
51
end
52
+
53
+ it "should allow two versions of a recipe" do
54
+ @run_list << "recipe[needy,0.2.0]"
55
+ @run_list << "recipe[needy,0.1.0]"
56
+ @run_list.run_list.length.should == 2
57
+ @run_list.recipes.length.should == 2
58
+ @run_list.recipes.include?('needy').should == true
59
+ end
60
61
62
+ it "should not allow duplicate versions of a recipe" do
63
64
65
+ @run_list.run_list.length.should == 1
66
+ @run_list.recipes.length.should == 1
67
68
69
70
describe "==" do
0 commit comments