spec/beaker/logger_spec.rb in beaker-5.6.0 vs spec/beaker/logger_spec.rb in beaker-5.7.0
- old
+ new
@@ -203,30 +203,30 @@
end
let(:logger) { described_class.new(my_io, :quiet => true, :log_colors => log_colors) }
it 'overrides the specified log colors' do
- expect(logger.log_colors[:error]).to be == Beaker::Logger::BLACK
+ expect(logger.log_colors[:error]).to eq Beaker::Logger::BLACK
end
it 'leaves other colors as the default' do
- expect(logger.log_colors[:warn]).to be == Beaker::Logger::BRIGHT_RED
+ expect(logger.log_colors[:warn]).to eq Beaker::Logger::BRIGHT_RED
end
end
context 'with CI detected' do
before do
ENV['BUILD_NUMBER'] = 'bob'
end
context 'when using the default log colors' do
it 'overrides notify with NORMAL' do
- expect(logger.log_colors[:notify]).to be == Beaker::Logger::NORMAL
+ expect(logger.log_colors[:notify]).to eq Beaker::Logger::NORMAL
end
it 'overrides info with NORMAL' do
- expect(logger.log_colors[:info]).to be == Beaker::Logger::NORMAL
+ expect(logger.log_colors[:info]).to eq Beaker::Logger::NORMAL
end
end
context 'when overriding default log colors' do
let(:log_colors) do
@@ -236,18 +236,18 @@
end
let(:logger) { described_class.new(my_io, :quiet => true, :log_colors => log_colors) }
it 'overrides the specified log colors' do
- expect(logger.log_colors[:error]).to be == Beaker::Logger::BLACK
+ expect(logger.log_colors[:error]).to eq Beaker::Logger::BLACK
end
it 'does not override notify with NORMAL' do
- expect(logger.log_colors[:notify]).not_to be == Beaker::Logger::NORMAL
+ expect(logger.log_colors[:notify]).not_to eq Beaker::Logger::NORMAL
end
it 'does not override info with NORMAL' do
- expect(logger.log_colors[:notify]).not_to be == Beaker::Logger::NORMAL
+ expect(logger.log_colors[:notify]).not_to eq Beaker::Logger::NORMAL
end
end
end
end
end