diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:05:42 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:05:42 -0800 |
commit | 652389fbd848861997b9b0c67fae7b2f5ecef064 (patch) | |
tree | 7cdde53b9b00b965052b2d4d9786768c003d47a6 /spec/unit/daemon_spec.rb | |
parent | 0fb2730a4c77264d6d5267eb3261f2912a25791f (diff) | |
download | chef-652389fbd848861997b9b0c67fae7b2f5ecef064.tar.gz |
fix rspec_reset problem
follows the pattern in the rspec-mocks spec tests of defining a
helper module:
https://github.com/rspec/rspec-mocks/blob/cee433c89125a3984df33c87eb61985613adce9b/spec/spec_helper.rb
Diffstat (limited to 'spec/unit/daemon_spec.rb')
-rw-r--r-- | spec/unit/daemon_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/daemon_spec.rb b/spec/unit/daemon_spec.rb index 8d66e08511..69ca2ed321 100644 --- a/spec/unit/daemon_spec.rb +++ b/spec/unit/daemon_spec.rb @@ -79,7 +79,7 @@ describe Chef::Daemon do end it "changes the working directory to root" do - Dir.rspec_reset + reset Dir Dir.should_receive(:chdir).with("/").and_return(0) Chef::Daemon.change_privilege end |