Add spec tests

This commit is contained in:
Matthew Robinson 2016-01-25 19:50:19 -08:00
parent 75422ccf78
commit 83ab19cdb9

View file

@ -124,6 +124,24 @@ describe 'nginx::config' do
:value => false, :value => false,
:notmatch => /pid/, :notmatch => /pid/,
}, },
{
:title => 'should set accept_mutex on',
:attr => 'accept_mutex',
:value => 'on',
:match => ' accept_mutex on;',
},
{
:title => 'should set accept_mutex off',
:attr => 'accept_mutex',
:value => 'off',
:match => ' accept_mutex off;',
},
{
:title => 'should set accept_mutex_delay',
:attr => 'accept_mutex_delay',
:value => '500s',
:match => ' accept_mutex_delay 500s;',
},
{ {
:title => 'should set worker_connections', :title => 'should set worker_connections',
:attr => 'worker_connections', :attr => 'worker_connections',