summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-05-25 12:22:22 -0500
committerLamont Granquist <lamont@scriptkiddie.org>2017-05-25 12:22:22 -0500
commit48b079600d935d2a2279f98b5c3027f336b1033c (patch)
treea359c5aa0a84e2b4f4d311d5179f593c67db4b24
parent536e02b224fef94764d86f6b93cc9736c6e2190e (diff)
downloadchef-48b079600d935d2a2279f98b5c3027f336b1033c.tar.gz
provider doesn't existing any more
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/provider/breakpoint_spec.rb49
1 files changed, 0 insertions, 49 deletions
diff --git a/spec/unit/provider/breakpoint_spec.rb b/spec/unit/provider/breakpoint_spec.rb
deleted file mode 100644
index 5d3bb0e352..0000000000
--- a/spec/unit/provider/breakpoint_spec.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-#
-# Author:: Daniel DeLeo (<dan@kallistec.com>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
-# License:: Apache License, Version 2.0
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-require "spec_helper"
-describe "le breakpoint provider" do
-
- let(:node) { Chef::Node.new }
- let(:events) { Chef::EventDispatch::Dispatcher.new }
- let(:run_context) { Chef::RunContext.new(node, {}, events) }
- let(:collection) { double("resource collection") }
- let(:resource) { Chef::Resource::Breakpoint.new("name", run_context) }
- let(:provider) { resource.provider_for_action(:break) }
-
- before do
- allow(run_context).to receive(:resource_collection).and_return(collection)
- end
-
- it "gets the iterator from @collection and pauses it" do
- allow(Shell).to receive(:running?).and_return(true)
- iterator = double("stepable_iterator")
- allow(collection).to receive(:iterator).and_return(iterator)
- expect(iterator).to receive(:pause)
- provider.action_break
- expect(resource).to be_updated
- end
-
- it "doesn't pause the iterator if chef-shell isn't running" do
- allow(Shell).to receive(:running?).and_return(false)
- iterator = double("stepable_iterator")
- allow(collection).to receive(:iterator).and_return(iterator)
- expect(iterator).not_to receive(:pause)
- provider.action_break
- end
-end