SMTP example for the ini resource was incorrect and did not work (#2461)

* SMTP example for the ini resource was incorrect and did not work

Obvious fix.

* Fixed documentation and removed semicolons as the ini parser includes those semicolons

Obvious fix.
This commit is contained in:
djenniex-bene 2018-01-17 12:41:33 -07:00 committed by Adam Leff
parent a36d65bdee
commit 2cfc0acaae

View file

@ -52,13 +52,14 @@ The following examples show how to use this InSpec audit resource.
For example, a PHP INI file located at contains the following settings:
; SMTP = smtp.gmail.com
; smtp_port = 465
[mail function]
SMTP = smtp.gmail.com
smtp_port = 465
and can be tested like this:
describe ini(/etc/php5/apache2/php.ini) do
its('smtp_port') { should eq('465') }
describe ini('/etc/php5/apache2/php.ini') do
its('mail function.smtp_port') { should eq('465') }
end
<br>