Sha256: 5efe866db679f89039c7f625eaf156ea62eaea1069b199ea767eaf770c5bea5c

Contents?: true

Size: 541 Bytes

Versions: 13

Compression:

Stored size: 541 Bytes

Contents

RSpec.describe Mutant::Reporter::CLI::Printer::MutationProgressResult do
  setup_shared_context

  let(:reportable) { mutation_a_result }

  before do
    allow(output).to receive(:tty?).and_return(true)
  end

  describe '.run' do
    context 'on killed mutant' do
      with(:mutation_a_test_result) { { passed: true } }

      it_reports Mutant::Color::RED.format('F')
    end

    context 'on alive mutant' do
      with(:mutation_a_test_result) { { passed: false } }

      it_reports Mutant::Color::GREEN.format('.')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.8.16 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.15 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.14 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.13 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.12 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.11 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.10 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.9 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.8 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.7 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.6 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.5 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb
mutant-0.8.4 spec/unit/mutant/reporter/cli/printer/mutation_progress_result_spec.rb