summaryrefslogtreecommitdiff
path: root/spec/functional/resource
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:18:28 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:18:28 -0800
commitdb9f8dce667916cd6575d2894c8ca25006138836 (patch)
treee53990767d7a7b7e8c369cf546e298e1635788d9 /spec/functional/resource
parentb19b7d000887209f9d8dc1dc6aa468a0497a7391 (diff)
downloadchef-db9f8dce667916cd6575d2894c8ca25006138836.tar.gz
s/mock\(/double(/g
Diffstat (limited to 'spec/functional/resource')
-rw-r--r--spec/functional/resource/registry_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb
index 98daf422da..b64989c141 100644
--- a/spec/functional/resource/registry_spec.rb
+++ b/spec/functional/resource/registry_spec.rb
@@ -111,7 +111,7 @@ describe Chef::Resource::RegistryKey, :windows_only do
before do
@node.name("windowsbox")
- @rest_client = mock("Chef::REST (mock)")
+ @rest_client = double("Chef::REST (mock)")
@rest_client.stub(:create_url).and_return("reports/nodes/windowsbox/runs/#{@run_id}");
@rest_client.stub(:raw_http_request).and_return({"result"=>"ok"});
@rest_client.stub(:post_rest).and_return({"uri"=>"https://example.com/reports/nodes/windowsbox/runs/#{@run_id}"});
@@ -124,7 +124,7 @@ describe Chef::Resource::RegistryKey, :windows_only do
@resource_reporter.run_started(@run_status)
@new_resource.cookbook_name = "monkey"
- @cookbook_version = mock("Cookbook::Version", :version => "1.2.3")
+ @cookbook_version = double("Cookbook::Version", :version => "1.2.3")
@new_resource.stub(:cookbook_version).and_return(@cookbook_version)
end