aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/health_checks_helper_spec.rb
blob: 7d4083da55385626735d53f82b1309d409357a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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