From 83ab19cdb95bc537f12448cebd665517f7b728ad Mon Sep 17 00:00:00 2001 From: Matthew Robinson Date: Mon, 25 Jan 2016 19:50:19 -0800 Subject: [PATCH] Add spec tests --- spec/classes/config_spec.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/spec/classes/config_spec.rb b/spec/classes/config_spec.rb index b1d775f..2207b79 100644 --- a/spec/classes/config_spec.rb +++ b/spec/classes/config_spec.rb @@ -124,6 +124,24 @@ describe 'nginx::config' do :value => false, :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', :attr => 'worker_connections',