summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorc5227532 <eike.waldt@sap.com>2016-09-28 22:05:38 +0200
committerc5227532 <eike.waldt@sap.com>2016-09-28 22:05:38 +0200
commit7c6de4dc81d5ecee1fbbeaed5de3ad4c4f00ce96 (patch)
tree41687fb869a0fa06320b3951e7424fd835ea5cd4 /spec
parentffeea114701237f7d48616fb82b7ca478f71e34d (diff)
downloadchef-7c6de4dc81d5ecee1fbbeaed5de3ad4c4f00ce96.tar.gz
cleaned comments in spec
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/package/zypper_spec.rb18
-rw-r--r--spec/unit/provider/package_spec.rb14
2 files changed, 0 insertions, 32 deletions
diff --git a/spec/unit/provider/package/zypper_spec.rb b/spec/unit/provider/package/zypper_spec.rb
index e18b35bd40..d2800575bc 100644
--- a/spec/unit/provider/package/zypper_spec.rb
+++ b/spec/unit/provider/package/zypper_spec.rb
@@ -231,24 +231,6 @@ describe Chef::Provider::Package::Zypper do
end
end
-### describe "lock_package" do
-### it "should run zypper addlock with the package name" do
-### shell_out_expectation!(
-### "zypper addlock emacs"
-### )
-### provider.lock_package(["emacs"], [nil])
-### end
-### end
-###
-### describe "unlock_package" do
-### it "should run zypper removelock with the package name" do
-### shell_out_expectation!(
-### "zypper removelock emacs"
-### )
-### provider.unlock_package(["emacs"], [nil])
-### end
-### end
-
describe "lock_package" do
it "should run zypper addlock with the package name" do
allow(Chef::Config).to receive(:[]).with(:zypper_check_gpg).and_return(true)
diff --git a/spec/unit/provider/package_spec.rb b/spec/unit/provider/package_spec.rb
index 3e509ec5ac..5a63ba1f9e 100644
--- a/spec/unit/provider/package_spec.rb
+++ b/spec/unit/provider/package_spec.rb
@@ -321,20 +321,6 @@ describe Chef::Provider::Package do
end
end
-### describe "When locking the package" do
-### before(:each) do
-### allow(provider).to receive(:lock_package).and_return(true)
-### end
-###
-### it "should lock the package if it is already locked" do
-### expect(provider).to be_locking_package
-### expect(provider).to receive(:lock_package).with("emacs", nil)
-### provider.run_action(:lock)
-### expect(new_resource).to be_updated
-### expect(new_resource).to be_updated_by_last_action
-### end
-### end
-
describe "when running commands to be implemented by subclasses" do
it "should raises UnsupportedAction for install" do
expect { provider.install_package("emacs", "1.4.2") }.to raise_error(Chef::Exceptions::UnsupportedAction)