Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'CHEF-1191'

  • Loading branch information...
commit 66c337a6250a1c9dd73f965c88aab43c0c7ab732 2 parents 13c2cea + 119e0b3
@danielsdeleo danielsdeleo authored
View
5 chef/spec/unit/application_spec.rb
@@ -26,11 +26,6 @@
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
View
8 chef/spec/unit/daemon_spec.rb
@@ -155,8 +155,14 @@
before do
Chef::Application.stub!(:fatal!).and_return(true)
Chef::Config.stub!(:[]).with(:user).and_return("aj")
+ Dir.stub!(:chdir)
end
-
+
+ it "should chdir to root" do
+ Dir.should_receive(:chdir).with("/").and_return(0)
+ Chef::Daemon.change_privilege
+ end
+
describe "when the user and group options are supplied" do
before do
Please sign in to comment.
Something went wrong with that request. Please try again.