summaryrefslogtreecommitdiff
path: root/spec/unit/provider/template/content_spec.rb
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/unit/provider/template/content_spec.rb
parentb19b7d000887209f9d8dc1dc6aa468a0497a7391 (diff)
downloadchef-db9f8dce667916cd6575d2894c8ca25006138836.tar.gz
s/mock\(/double(/g
Diffstat (limited to 'spec/unit/provider/template/content_spec.rb')
-rw-r--r--spec/unit/provider/template/content_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/template/content_spec.rb b/spec/unit/provider/template/content_spec.rb
index 1251f96bd3..dfc5d21c2a 100644
--- a/spec/unit/provider/template/content_spec.rb
+++ b/spec/unit/provider/template/content_spec.rb
@@ -21,7 +21,7 @@ require 'spec_helper'
describe Chef::Provider::Template::Content do
let(:new_resource) do
- mock("Chef::Resource::Template (new)",
+ double("Chef::Resource::Template (new)",
:cookbook_name => 'openldap',
:source => 'openldap_stuff.conf.erb',
:local => false,
@@ -41,11 +41,11 @@ describe Chef::Provider::Template::Content do
cl.load_cookbooks
cookbook_collection = Chef::CookbookCollection.new(cl)
node = Chef::Node.new
- mock("Chef::Resource::RunContext", :node => node, :cookbook_collection => cookbook_collection)
+ double("Chef::Resource::RunContext", :node => node, :cookbook_collection => cookbook_collection)
end
let(:content) do
- current_resource = mock("Chef::Resource::Template (current)")
+ current_resource = double("Chef::Resource::Template (current)")
Chef::Provider::Template::Content.new(new_resource, current_resource, run_context)
end