blob: 7dbfaf06e269a620c5b6474afa5048589e68b2c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
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
|