Skip to content

Commit

Permalink
add order to message expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed May 1, 2010
1 parent 0542c42 commit c169ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chef/spec/unit/knife/cookbook_test_spec.rb
Expand Up @@ -52,8 +52,8 @@
@knife.stub!(:test_template).and_return(true)
@knife.name_args = ["example"]
Array(Chef::Config[:cookbook_path]).reverse.each do |path|
@knife.should_receive(:test_ruby).with(File.join(path, "example"))
@knife.should_receive(:test_templates).with(File.expand_path(File.join(path, "example")))
@knife.should_receive(:test_ruby).with(File.join(path, "example")).ordered
@knife.should_receive(:test_templates).with(File.expand_path(File.join(path, "example"))).ordered
end
@knife.run
end
Expand Down

0 comments on commit c169ebf

Please sign in to comment.