add negative test for log_format

This commit is contained in:
Matthew Haughton 2014-12-03 23:26:00 -05:00
parent 2e221a7e0f
commit 9647d1278f

View file

@ -189,6 +189,12 @@ describe 'nginx::config' do
' log_format format2 \'FORMAT2\';',
],
},
{
:title => 'should not set log formats',
:attr => 'log_format',
:value => {},
:notmatch => /log_format/,
},
{
:title => 'should set access_log',
:attr => 'http_access_log',