summaryrefslogtreecommitdiff
path: root/spec/unit/resource/reboot_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/reboot_spec.rb')
-rw-r--r--spec/unit/resource/reboot_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/unit/resource/reboot_spec.rb b/spec/unit/resource/reboot_spec.rb
index adcfb9e6a4..baf628d6d0 100644
--- a/spec/unit/resource/reboot_spec.rb
+++ b/spec/unit/resource/reboot_spec.rb
@@ -21,12 +21,14 @@ describe Chef::Resource::Reboot do
let(:resource) { Chef::Resource::Reboot.new("reboot me!") }
- it "has a default action of :nothing" do
+ it "sets the default action as :nothing" do
expect(resource.action).to eql([:nothing])
end
- it "supports the :nothing, :request_reboot, :reboot_now, and :cancel actions" do
- expect(resource.allowed_actions).to include(:nothing, :request_reboot, :reboot_now, :cancel)
+ it "supports :request_reboot, :reboot_now, :cancel actions" do
+ expect { resource.action :request_reboot }.not_to raise_error
+ expect { resource.action :reboot_now }.not_to raise_error
+ expect { resource.action :cancel }.not_to raise_error
end
it "has a resource_name of :reboot" do