diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-09-30 13:56:59 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-09-30 13:56:59 +0100 |
commit | c64360898beca1162a1bdef9ca4b76676e0907f8 (patch) | |
tree | 5c0452a20ce0310f72d0741b171085c5efe1d312 /spec/helpers | |
parent | e5a9052a9ffd27117775e8adaeaa2e24607e8000 (diff) | |
parent | 3a40bfc8a8abbfedb554215849b1c6372864eb1f (diff) |
Merge branch 'issues/1827-healthcheck' into rails-3-develop
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/health_checks_helper_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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 |