File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments