Skip to content

Commit

Permalink
Add basic tests for safe_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bashton committed May 7, 2013
1 parent b9f33d3 commit 4ba05ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/classes/sensu_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
let(:params) { {
:address => '1.2.3.4',
:subscriptions => ['all'],
:client_name => 'myclient'
:client_name => 'myclient',
:safe_mode => 'true'
} }

it { should contain_sensu_client_config('host.domain.com').with(
'client_name' => 'myclient',
'address' => '1.2.3.4',
'subscriptions' => ['all'],
'ensure' => 'present'
'ensure' => 'present',
'safe_mode' => 'true'
) }

end
Expand Down

0 comments on commit 4ba05ae

Please sign in to comment.