summaryrefslogtreecommitdiff
path: root/spec/unit/search
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/search
parentb19b7d000887209f9d8dc1dc6aa468a0497a7391 (diff)
downloadchef-db9f8dce667916cd6575d2894c8ca25006138836.tar.gz
s/mock\(/double(/g
Diffstat (limited to 'spec/unit/search')
-rw-r--r--spec/unit/search/query_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/search/query_spec.rb b/spec/unit/search/query_spec.rb
index bebb69f111..d880f49a4b 100644
--- a/spec/unit/search/query_spec.rb
+++ b/spec/unit/search/query_spec.rb
@@ -21,7 +21,7 @@ require 'chef/search/query'
describe Chef::Search::Query do
before(:each) do
- @rest = mock("Chef::REST")
+ @rest = double("Chef::REST")
Chef::REST.stub(:new).and_return(@rest)
@query = Chef::Search::Query.new
end
@@ -85,13 +85,13 @@ describe Chef::Search::Query do
end
it "should call a block for each object in the response" do
- @call_me = mock("blocky")
+ @call_me = double("blocky")
@response["rows"].each { |r| @call_me.should_receive(:do).with(r) }
@query.search(:foo) { |r| @call_me.do(r) }
end
it "should page through the responses" do
- @call_me = mock("blocky")
+ @call_me = double("blocky")
@response["rows"].each { |r| @call_me.should_receive(:do).with(r) }
@query.search(:foo, "*:*", nil, 0, 1) { |r| @call_me.do(r) }
end