summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-02-04 16:55:17 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-04 18:58:56 -0800
commitff38b4035f15e22149c467e9f108154e5c1d2eef (patch)
treed3941a073430966ffb1cf3d191c7a7fbfe27f39a /spec
parent273f25770d74394fa9789c2e018b070e802efe0d (diff)
downloadchef-ff38b4035f15e22149c467e9f108154e5c1d2eef.tar.gz
Extend the reboot_pending? helper to all debian-ish platforms
This works on Debian as well and we want to check it on all Ubuntu-derivatives. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/dsl/reboot_pending_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/dsl/reboot_pending_spec.rb b/spec/unit/dsl/reboot_pending_spec.rb
index 3ad1be9e38..90945c3b80 100644
--- a/spec/unit/dsl/reboot_pending_spec.rb
+++ b/spec/unit/dsl/reboot_pending_spec.rb
@@ -51,9 +51,9 @@ describe Chef::DSL::RebootPending do
end
end
- context "platform is ubuntu" do
+ context "platform_family is debian" do
before do
- allow(recipe).to receive(:platform?).with("ubuntu").and_return(true)
+ allow(recipe).to receive(:platform_family?).with("debian").and_return(true)
end
it "should return true if /var/run/reboot-required exists" do