summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 22:50:38 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 22:50:38 -0800
commit9a236897480d7ad5fa13d1d3b5d4a91b6c072a61 (patch)
tree5c331a5881bd0e914c59fb2fd7b179581f06ca78 /spec/unit
parent6c3d64acbe052340972bba3bfc162d39a9fc240e (diff)
downloadchef-9a236897480d7ad5fa13d1d3b5d4a91b6c072a61.tar.gz
ripping out rspec_reset entirely
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/daemon_spec.rb1
-rw-r--r--spec/unit/provider/deploy/revision_spec.rb1
-rw-r--r--spec/unit/provider/mount/mount_spec.rb1
-rw-r--r--spec/unit/shell_spec.rb1
4 files changed, 0 insertions, 4 deletions
diff --git a/spec/unit/daemon_spec.rb b/spec/unit/daemon_spec.rb
index ea6bc95df8..9132dae389 100644
--- a/spec/unit/daemon_spec.rb
+++ b/spec/unit/daemon_spec.rb
@@ -79,7 +79,6 @@ describe Chef::Daemon do
end
it "changes the working directory to root" do
- reset Dir
Dir.should_receive(:chdir).with("/").and_return(0)
Chef::Daemon.change_privilege
end
diff --git a/spec/unit/provider/deploy/revision_spec.rb b/spec/unit/provider/deploy/revision_spec.rb
index 292c0ad9f6..8d4590378e 100644
--- a/spec/unit/provider/deploy/revision_spec.rb
+++ b/spec/unit/provider/deploy/revision_spec.rb
@@ -37,7 +37,6 @@ describe Chef::Provider::Deploy::Revision do
after do
# Make sure we don't keep any state in our tests
- reset FileUtils
FileUtils.rm_rf @temp_dir if File.directory?( @temp_dir )
end
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb
index b1339eef8a..99e78590f1 100644
--- a/spec/unit/provider/mount/mount_spec.rb
+++ b/spec/unit/provider/mount/mount_spec.rb
@@ -263,7 +263,6 @@ describe Chef::Provider::Mount::Mount do
describe "mount_fs" do
it "should mount the filesystem if it is not mounted" do
- reset @provider
@provider.should_receive(:shell_out!).with("mount -t ext3 -o defaults /dev/sdz1 /tmp/foo")
@provider.mount_fs()
end
diff --git a/spec/unit/shell_spec.rb b/spec/unit/shell_spec.rb
index 6f155c46ad..cce743873f 100644
--- a/spec/unit/shell_spec.rb
+++ b/spec/unit/shell_spec.rb
@@ -42,7 +42,6 @@ describe Shell do
before do
Shell.irb_conf = {}
- reset Shell::ShellSession.instance
Shell::ShellSession.instance.stub(:reset!)
end