diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-08-17 12:49:13 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-08-17 12:50:30 +0300 |
commit | 88a0c984fc0bdbe0951b02c4e1d4b749dce88a24 (patch) | |
tree | 4c9f05e50ac1a7ff9e4cc76622078c2e75dea2ca /spec/lib/gitlab/downtime_check | |
parent | d1da2e8180d92e5f4a8b5ebb36b0f4e4d0618bf8 (diff) |
Fixed downtime check label colouring
The colours were incorrect: offline was green and online was red,
instead of the opposite.
Diffstat (limited to 'spec/lib/gitlab/downtime_check')
-rw-r--r-- | spec/lib/gitlab/downtime_check/message_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/downtime_check/message_spec.rb b/spec/lib/gitlab/downtime_check/message_spec.rb index 93094cda776..d467d2cbd18 100644 --- a/spec/lib/gitlab/downtime_check/message_spec.rb +++ b/spec/lib/gitlab/downtime_check/message_spec.rb @@ -5,13 +5,13 @@ describe Gitlab::DowntimeCheck::Message do it 'returns an ANSI formatted String for an offline migration' do message = described_class.new('foo.rb', true, 'hello') - expect(message.to_s).to eq("[\e[32moffline\e[0m]: foo.rb: hello") + expect(message.to_s).to eq("[\e[31moffline\e[0m]: foo.rb: hello") end it 'returns an ANSI formatted String for an online migration' do message = described_class.new('foo.rb') - expect(message.to_s).to eq("[\e[31monline\e[0m]: foo.rb") + expect(message.to_s).to eq("[\e[32monline\e[0m]: foo.rb") end end end |