summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-11 12:11:01 -0700
committerTim Smith <tsmith@chef.io>2018-06-11 12:11:01 -0700
commited5bee8a01126054b1fbee91ef39740e0832d55b (patch)
tree3f7c6146371f7b82085652b8418ad5e1bd4bab26 /spec
parent3a7571cc84a0b88ddc8ddf01e929e11ce8b041eb (diff)
downloadchef-ed5bee8a01126054b1fbee91ef39740e0832d55b.tar.gz
Enable preview_resource for ssh_known_hosts_entry
Add a spec that will fail once we bump the chef version to 15 Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/ssh_known_hosts_entry_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/ssh_known_hosts_entry_spec.rb b/spec/unit/resource/ssh_known_hosts_entry_spec.rb
index 251675dd10..3bae37dfe7 100644
--- a/spec/unit/resource/ssh_known_hosts_entry_spec.rb
+++ b/spec/unit/resource/ssh_known_hosts_entry_spec.rb
@@ -26,6 +26,11 @@ describe Chef::Resource::SshKnownHostsEntry do
end
let(:resource) { Chef::Resource::SshKnownHostsEntry.new("example.com", run_context) }
+ 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 resource name as :ssh_known_hosts_entry" do
expect(resource.resource_name).to eql(:ssh_known_hosts_entry)
end