Skip to content

Commit 9e337a7

Browse files
committed
Fixing specs
1 parent b4def5f commit 9e337a7

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

chef/spec/unit/role_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@
139139
@serial.should =~ /"override_attributes":\{"deloused":"in the comatorium"\}/
140140
end
141141

142-
it "should include 'recipes'" do
143-
@serial.should =~ /"recipes":\["one","two"\]/
144-
end
145142
it "should include 'run_list'" do
146143
@serial.should =~ /"run_list":\["recipe\[one\]","recipe\[two\]","role\[a\]"\]/
147144
end

chef/spec/unit/run_list_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@
199199
it "should recurse into a child role" do
200200
dog = Chef::Role.new
201201
dog.name "dog"
202-
dog.default_attributes :one => :five
202+
dog.default_attributes :seven => :nine
203203
dog.run_list "three"
204204
@role.run_list << "role[dog]"
205205
Chef::Role.stub!(:from_disk).with("stubby").and_return(@role)
206206
Chef::Role.stub!(:from_disk).with("dog").and_return(dog)
207207

208208
recipes, default, override = @run_list.expand('disk')
209209
recipes[2].should == "three"
210-
default[:one].should == :five
210+
default[:seven].should == :nine
211211
end
212212

213213

0 commit comments

Comments
 (0)