Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Carroll committed Mar 8, 2013
1 parent ca908d7 commit 388eb0a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spec/defines/sensu_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
'command' => '/etc/sensu/somecommand.rb',
'handlers' => [],
'interval' => '60',
'subscribers' => [],
'standalone' => 'true',
'aggregate' => 'false'
'subscribers' => []
) }

it { should contain_sensu_check_config('mycheck').with_ensure('absent') }
Expand All @@ -26,15 +24,14 @@
:interval => '10',
:subscribers => ['all'],
:type => 'metric',
:standalone => false,
:standalone => true,
:notification => 'some text',
:low_flap_threshold => 10,
:high_flap_threshold => 15,
:refresh => 1800,
:aggregate => true,
:config => { 'foo' => 'bar' },
:config_key => 'mykey'

} }

it { should contain_sensu_check('mycheck').with(
Expand All @@ -44,12 +41,12 @@
'interval' => '10',
'subscribers' => ['all'],
'type' => 'metric',
'standalone' => 'false',
'standalone' => true,
'notification' => 'some text',
'low_flap_threshold' => '10',
'high_flap_threshold' => '15',
'refresh' => '1800',
'aggregate' => 'true'
'aggregate' => true
) }
it { should contain_sensu_check_config('mykey').with_ensure('present')}
end
Expand Down

0 comments on commit 388eb0a

Please sign in to comment.