diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:18:28 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:18:28 -0800 |
commit | db9f8dce667916cd6575d2894c8ca25006138836 (patch) | |
tree | e53990767d7a7b7e8c369cf546e298e1635788d9 /spec/unit/provider/breakpoint_spec.rb | |
parent | b19b7d000887209f9d8dc1dc6aa468a0497a7391 (diff) | |
download | chef-db9f8dce667916cd6575d2894c8ca25006138836.tar.gz |
s/mock\(/double(/g
Diffstat (limited to 'spec/unit/provider/breakpoint_spec.rb')
-rw-r--r-- | spec/unit/provider/breakpoint_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/breakpoint_spec.rb b/spec/unit/provider/breakpoint_spec.rb index ebdefd9bea..05f3e8e0ed 100644 --- a/spec/unit/provider/breakpoint_spec.rb +++ b/spec/unit/provider/breakpoint_spec.rb @@ -25,7 +25,7 @@ describe Chef::Provider::Breakpoint do @node = Chef::Node.new @events = Chef::EventDispatch::Dispatcher.new @run_context = Chef::RunContext.new(@node, {}, @events) - @collection = mock("resource collection") + @collection = double("resource collection") @run_context.stub(:resource_collection).and_return(@collection) @provider = Chef::Provider::Breakpoint.new(@resource, @run_context) end @@ -36,7 +36,7 @@ describe Chef::Provider::Breakpoint do it "gets the iterator from @collection and pauses it" do Shell.stub(:running?).and_return(true) - @iterator = mock("stepable_iterator") + @iterator = double("stepable_iterator") @collection.stub(:iterator).and_return(@iterator) @iterator.should_receive(:pause) @provider.action_break @@ -45,7 +45,7 @@ describe Chef::Provider::Breakpoint do it "doesn't pause the iterator if chef-shell isn't running" do Shell.stub(:running?).and_return(false) - @iterator = mock("stepable_iterator") + @iterator = double("stepable_iterator") @collection.stub(:iterator).and_return(@iterator) @iterator.should_not_receive(:pause) @provider.action_break |