summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-11 12:42:36 -0700
committerTim Smith <tsmith@chef.io>2018-06-11 12:43:04 -0700
commit738a786f78ec4d31576b9f1edde3fd3870bdb104 (patch)
tree8b5a6a448395dbaed5eeb723bbb559b999c831a7 /spec
parent4caa26bfeb9d2fdeb88c9468b584cdfb47dd556a (diff)
downloadchef-738a786f78ec4d31576b9f1edde3fd3870bdb104.tar.gz
Make kernel_module a preview resource until Chef 15
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/kernel_module_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/kernel_module_spec.rb b/spec/unit/resource/kernel_module_spec.rb
index 6cbc047e79..03cda28471 100644
--- a/spec/unit/resource/kernel_module_spec.rb
+++ b/spec/unit/resource/kernel_module_spec.rb
@@ -24,6 +24,11 @@ describe Chef::Resource::KernelModule do
expect(resource.resource_name).to eql(:kernel_module)
end
+ it "is not a preview resource in Chef 15" do
+ pending("Chef 15") unless Chef::VERSION.start_with?("15")
+ expect(resource.class.preview_resource).to be_falsey
+ end
+
it "sets the default action as :install" do
expect(resource.action).to eql([:install])
end