aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorCaleb <caleb.tutty@nzherald.co.nz>2015-04-20 11:33:23 +1200
committerCaleb <caleb.tutty@nzherald.co.nz>2015-04-20 11:33:23 +1200
commit30ac083e66c9ffe1d8de9f641b6a703c37fc0c49 (patch)
tree6b1fcabc2ab94797896028179b47d91fa8ed80ec /spec/helpers
parent5b67028416beb954311ae6b7fd6852939c7dd8dc (diff)
Fixed status check helper
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/health_checks_helper_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/helpers/health_checks_helper_spec.rb b/spec/helpers/health_checks_helper_spec.rb
index 7d4083da5..7dbfaf06e 100644
--- a/spec/helpers/health_checks_helper_spec.rb
+++ b/spec/helpers/health_checks_helper_spec.rb
@@ -10,6 +10,11 @@ describe HealthChecksHelper do
expect(check_status(check)).to include('red')
end
+ it 'sets style to a blank string if ok' do
+ check = double(:message => '', :ok? => true)
+ expect(check_status(check)).to include('style=""')
+ end
+
end
end