summaryrefslogtreecommitdiff
path: root/spec/unit/provider/ohai_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
commitb19b7d000887209f9d8dc1dc6aa468a0497a7391 (patch)
tree68d1eb6c136df20c2800f1dddb4e2c1ed5d75a42 /spec/unit/provider/ohai_spec.rb
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/provider/ohai_spec.rb')
-rw-r--r--spec/unit/provider/ohai_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/provider/ohai_spec.rb b/spec/unit/provider/ohai_spec.rb
index 8402c92e97..8b8a6b5939 100644
--- a/spec/unit/provider/ohai_spec.rb
+++ b/spec/unit/provider/ohai_spec.rb
@@ -41,17 +41,17 @@ describe Chef::Provider::Ohai do
:newdata => "somevalue"
}
}
- mock_ohai.stub!(:all_plugins).and_return(true)
- mock_ohai.stub!(:require_plugin).and_return(true)
- mock_ohai.stub!(:data).and_return(mock_ohai[:data],
+ mock_ohai.stub(:all_plugins).and_return(true)
+ mock_ohai.stub(:require_plugin).and_return(true)
+ mock_ohai.stub(:data).and_return(mock_ohai[:data],
mock_ohai[:data2])
- Ohai::System.stub!(:new).and_return(mock_ohai)
- Chef::Platform.stub!(:find_platform_and_version).and_return({ "platform" => @platform,
+ Ohai::System.stub(:new).and_return(mock_ohai)
+ Chef::Platform.stub(:find_platform_and_version).and_return({ "platform" => @platform,
"platform_version" => @platform_version})
# Fake node with a dummy save
@node = Chef::Node.new
@node.name(@fqdn)
- @node.stub!(:save).and_return(@node)
+ @node.stub(:save).and_return(@node)
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(@node, {}, @events)
@new_resource = Chef::Resource::Ohai.new("ohai_reload")