diff options
Diffstat (limited to 'chef/spec/unit/application_spec.rb')
-rw-r--r-- | chef/spec/unit/application_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chef/spec/unit/application_spec.rb b/chef/spec/unit/application_spec.rb index 917e8b4c31..90d7ee3bb1 100644 --- a/chef/spec/unit/application_spec.rb +++ b/chef/spec/unit/application_spec.rb @@ -20,11 +20,17 @@ require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper")) describe Chef::Application, "initialize" do before do @app = Chef::Application.new + Dir.stub!(:chdir).and_return(0) end it "should create an instance of Chef::Application" do @app.should be_kind_of(Chef::Application) end + + it "should chdir to root" do + Dir.should_receive(:chdir).with("/").and_return(0) + Chef::Application.new + end end |