Sha256: 43e7d8f5021979ccdf805afa0270686aaee6e3cb0c4704e7ae7454a7ab85c913

Contents?: true

Size: 895 Bytes

Versions: 7

Compression:

Stored size: 895 Bytes

Contents

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

  let(:reportable) { config }

  describe '.call' do
    context 'on default config' do
      it_reports(<<-REPORT)
        Mutant configuration:
        Matcher:         #<Mutant::Matcher::Config empty>
        Integration:     Mutant::Integration::Null
        Expect Coverage: 100.00%
        Jobs:            1
        Includes:        []
        Requires:        []
      REPORT
    end

    context 'with non default coverage expectation' do
      with(:config) { { expected_coverage: 0.1r } }

      it_reports(<<-REPORT)
        Mutant configuration:
        Matcher:         #<Mutant::Matcher::Config empty>
        Integration:     Mutant::Integration::Null
        Expect Coverage: 10.00%
        Jobs:            1
        Includes:        []
        Requires:        []
      REPORT
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.8.10 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.9 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.8 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.7 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.6 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.5 spec/unit/mutant/reporter/cli/printer/config_spec.rb
mutant-0.8.4 spec/unit/mutant/reporter/cli/printer/config_spec.rb