spec/unit/mutant/reporter/cli/printer_spec.rb in mutant-0.9.9 vs spec/unit/mutant/reporter/cli/printer_spec.rb in mutant-0.9.10

- old
+ new

@@ -62,16 +62,16 @@ end end context 'on tty' do context 'on success' do - it_reports Mutant::Color::GREEN.format('foo bar') + "\n" + it_reports Unparser::Color::GREEN.format('foo bar') + "\n" end context 'on failure' do let(:success?) { false } - it_reports Mutant::Color::RED.format('foo bar') + "\n" + it_reports Unparser::Color::RED.format('foo bar') + "\n" end end context 'on no tty' do let(:tty?) { false } @@ -144,16 +144,16 @@ describe '#colorize' do let(:class_under_test) do Class.new(described_class) do def run - puts(colorize(Mutant::Color::RED, 'foo')) + puts(colorize(Unparser::Color::RED, 'foo')) end end end context 'when output is a tty?' do - it_reports Mutant::Color::RED.format('foo') + "\n" + it_reports Unparser::Color::RED.format('foo') + "\n" end context 'when output is NOT a tty?' do let(:tty?) { false } it_reports "foo\n"