From 8b037fa9c262f77380f8b64636cd34a2c765b054 Mon Sep 17 00:00:00 2001 From: Cameron Straka Date: Tue, 31 Dec 2019 10:51:55 -0500 Subject: [PATCH] replaced instances of `have_protocols` with `have_protocol` in documentation and examples Signed-off-by: Cameron Straka --- docs/resources/iis_app.md.erb | 4 ++-- lib/inspec/resources/iis_app.rb | 2 +- test/kitchen/policies/default/controls/iis_site_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/resources/iis_app.md.erb b/docs/resources/iis_app.md.erb index 48f0f8c11..1bfb1ae18 100644 --- a/docs/resources/iis_app.md.erb +++ b/docs/resources/iis_app.md.erb @@ -26,7 +26,7 @@ An `iis_app` resource block declares details about the named site: describe iis_app('application_path', 'site_name') do it { should exist } it { should have_application_pool('application_pool') } - it { should have_protocols('protocol') } + it { should have_protocol('protocol') } it { should have_site_name('site') } it { should have_physical_path('physical_path') } it { should have_path('application_path') } @@ -45,7 +45,7 @@ For example: describe iis_app('/myapp', 'Default Web Site') do it { should exist } it { should have_application_pool('MyAppPool') } - it { should have_protocols('http') } + it { should have_protocol('http') } it { should have_site_name('Default Web Site') } it { should have_physical_path('C:\\inetpub\\wwwroot\\myapp') } it { should have_path('\\My Application') } diff --git a/lib/inspec/resources/iis_app.rb b/lib/inspec/resources/iis_app.rb index c87778872..4800504ed 100644 --- a/lib/inspec/resources/iis_app.rb +++ b/lib/inspec/resources/iis_app.rb @@ -10,7 +10,7 @@ module Inspec::Resources describe iis_app('/myapp', 'Default Web Site') do it { should exist } it { should have_application_pool('MyAppPool') } - it { should have_protocols('http') } + it { should have_protocol('http') } it { should have_site_name('Default Web Site') } it { should have_physical_path('C:\\inetpub\\wwwroot\\myapp') } it { should have_path('\\My Application') } diff --git a/test/kitchen/policies/default/controls/iis_site_spec.rb b/test/kitchen/policies/default/controls/iis_site_spec.rb index ca61f776a..dce9062ec 100644 --- a/test/kitchen/policies/default/controls/iis_site_spec.rb +++ b/test/kitchen/policies/default/controls/iis_site_spec.rb @@ -33,7 +33,7 @@ end describe iis_app('/TestApp', 'Default Web Site') do it { should exist } it { should have_application_pool('DefaultAppPool') } - it { should have_protocols('http') } + it { should have_protocol('http') } it { should have_site_name('Default Web Site') } it { should have_physical_path('C:\\inetpub\\wwwroot\\Test') } it { should have_path('\\TestApp') }