From 73dfb0e7b9da478c2d1655de7a7b6330e544be9b Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 11 Jan 2015 17:28:41 +0000 Subject: [PATCH] Fixed Spec tests. Fixed the defaults in sensu_check_spec.rb as the default no longer includes an empty array for subscribers. --- spec/defines/sensu_check_spec.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/spec/defines/sensu_check_spec.rb b/spec/defines/sensu_check_spec.rb index 3ccfd201ea..64d2ddbd56 100644 --- a/spec/defines/sensu_check_spec.rb +++ b/spec/defines/sensu_check_spec.rb @@ -11,8 +11,7 @@ it { should contain_sensu_check('mycheck').with( :command => '/etc/sensu/somecommand.rb', - :interval => 60, - :subscribers => [] + :interval => 60 ) } end @@ -69,8 +68,7 @@ it { should contain_sensu_check('mycheck_foobar').with( :command => '/etc/sensu/somecommand.rb', - :interval => '60', - :subscribers => [] + :interval => '60' ) } it { should contain_file('/etc/sensu/conf.d/checks/mycheck_foobar.json') } @@ -85,8 +83,7 @@ it { should contain_sensu_check('mycheck_foo_bar').with( 'command' => '/etc/sensu/somecommand.rb', - 'interval' => '60', - 'subscribers' => [] + 'interval' => '60' ) } it { should contain_file('/etc/sensu/conf.d/checks/mycheck_foo_bar.json') }