From 2fdfd7b62e603b5f4d2ff5925a49b2d5ed83bf3b Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 17 Sep 2014 17:09:25 +0100 Subject: Add an action to run the checks --- spec/helpers/health_checks_helper_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 spec/helpers/health_checks_helper_spec.rb (limited to 'spec/helpers') diff --git a/spec/helpers/health_checks_helper_spec.rb b/spec/helpers/health_checks_helper_spec.rb new file mode 100644 index 000000000..7d4083da5 --- /dev/null +++ b/spec/helpers/health_checks_helper_spec.rb @@ -0,0 +1,15 @@ +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe HealthChecksHelper do + include HealthChecksHelper + + describe :check_status do + + it 'warns that the check is failing' do + check = double(:message => 'Failed', :ok? => false) + expect(check_status(check)).to include('red') + end + + end + +end -- cgit v1.2.3