Skip to content

Commit

Permalink
Fixed Spec tests.
Browse files Browse the repository at this point in the history
Fixed the defaults in sensu_check_spec.rb as the default no longer
includes an empty array for subscribers.
  • Loading branch information
jonathanio committed Jan 11, 2015
1 parent 9532e4b commit 73dfb0e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/defines/sensu_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

it { should contain_sensu_check('mycheck').with(
:command => '/etc/sensu/somecommand.rb',
:interval => 60,
:subscribers => []
:interval => 60
) }

end
Expand Down Expand Up @@ -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') }
Expand All @@ -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') }
Expand Down

0 comments on commit 73dfb0e

Please sign in to comment.