Skip to content

Commit

Permalink
test set handle_silenced to false as well
Browse files Browse the repository at this point in the history
  • Loading branch information
madAndroid committed Jul 21, 2017
1 parent bf0e8e5 commit 60947ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/defines/sensu_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@
it { should contain_sensu_handler('myhandler').with_handle_silenced( true ) }
end

context 'handle_silenced set to false' do
let(:params) { { :command => 'mycommand.rb', :type => 'pipe' } }
it { should contain_sensu_handler('myhandler').with_handle_silenced( false ) }
end

context 'handle_silenced set to default' do
let(:params) { { :command => 'mycommand.rb', :type => 'pipe' } }
it { should contain_sensu_handler('myhandler').with_handle_silenced( false ) }
Expand Down

0 comments on commit 60947ec

Please sign in to comment.