diff options
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 |