summaryrefslogtreecommitdiff
path: root/spec/unit/provider_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_spec.rb
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/provider_spec.rb')
-rw-r--r--spec/unit/provider_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb
index 7873be0f28..363649ec46 100644
--- a/spec/unit/provider_spec.rb
+++ b/spec/unit/provider_spec.rb
@@ -93,15 +93,15 @@ describe Chef::Provider do
it "does not re-load recipes when creating the temporary run context" do
# we actually want to test that RunContext#load is never called, but we
# can't stub all instances of an object with rspec's mocks. :/
- Chef::RunContext.stub!(:new).and_raise("not supposed to happen")
+ Chef::RunContext.stub(:new).and_raise("not supposed to happen")
snitch = Proc.new {temporary_collection = @run_context.resource_collection}
@provider.send(:recipe_eval, &snitch)
end
context "when no converge actions are queued" do
before do
- @provider.stub!(:whyrun_supported?).and_return(true)
- @provider.stub!(:load_current_resource)
+ @provider.stub(:whyrun_supported?).and_return(true)
+ @provider.stub(:load_current_resource)
end
it "does not mark the new resource as updated" do