summaryrefslogtreecommitdiff
path: root/spec/unit/application/apply.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/application/apply.rb
parentb19b7d000887209f9d8dc1dc6aa468a0497a7391 (diff)
downloadchef-db9f8dce667916cd6575d2894c8ca25006138836.tar.gz
s/mock\(/double(/g
Diffstat (limited to 'spec/unit/application/apply.rb')
-rw-r--r--spec/unit/application/apply.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/apply.rb b/spec/unit/application/apply.rb
index 4ada2b521c..32c98c6ed6 100644
--- a/spec/unit/application/apply.rb
+++ b/spec/unit/application/apply.rb
@@ -36,7 +36,7 @@ describe Chef::Application::Apply do
before do
@recipe_file_name = "foo.rb"
@recipe_path = File.expand_path("foo.rb")
- @recipe_file = mock("Tempfile (mock)", :read => @recipe_text)
+ @recipe_file = double("Tempfile (mock)", :read => @recipe_text)
@app.stub(:open).with(@recipe_path).and_return(@recipe_file)
File.stub(:exist?).with("foo.rb").and_return(true)
Chef::Application.stub(:fatal!).and_return(true)