spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.0 vs spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.1
- old
+ new
@@ -7,12 +7,12 @@
context 'with empty scheduler' do
update(:env_result) { { subject_results: [] } }
it_reports <<-REPORT
Mutant configuration:
- Matcher: #<Mutant::Matcher::Config match_expressions=[] subject_ignores=[] subject_selects=[]>
- Integration: null
+ Matcher: #<Mutant::Matcher::Config empty>
+ Integration: Mutant::Integration::Null
Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
@@ -20,22 +20,22 @@
Kills: 0
Alive: 0
Runtime: 4.00s
Killtime: 0.00s
Overhead: Inf%
- Coverage: 0.00%
+ Coverage: 100.00%
Expected: 100.00%
Active subjects: 0
REPORT
context 'on non default coverage expectation' do
update(:config) { { expected_coverage: 0.1r } }
it_reports <<-REPORT
Mutant configuration:
- Matcher: #<Mutant::Matcher::Config match_expressions=[] subject_ignores=[] subject_selects=[]>
- Integration: null
+ Matcher: #<Mutant::Matcher::Config empty>
+ Integration: Mutant::Integration::Null
Expect Coverage: 10.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
@@ -43,11 +43,11 @@
Kills: 0
Alive: 0
Runtime: 4.00s
Killtime: 0.00s
Overhead: Inf%
- Coverage: 0.00%
+ Coverage: 100.00%
Expected: 10.00%
Active subjects: 0
REPORT
end
end
@@ -56,12 +56,12 @@
context 'without progress' do
update(:status) { { active_jobs: [].to_set } }
it_reports(<<-REPORT)
Mutant configuration:
- Matcher: #<Mutant::Matcher::Config match_expressions=[] subject_ignores=[] subject_selects=[]>
- Integration: null
+ Matcher: #<Mutant::Matcher::Config empty>
+ Integration: Mutant::Integration::Null
Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
@@ -83,12 +83,12 @@
context 'on failure' do
update(:mutation_a_test_result) { { passed: true } }
it_reports(<<-REPORT)
Mutant configuration:
- Matcher: #<Mutant::Matcher::Config match_expressions=[] subject_ignores=[] subject_selects=[]>
- Integration: null
+ Matcher: #<Mutant::Matcher::Config empty>
+ Integration: Mutant::Integration::Null
Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
@@ -112,11 +112,11 @@
end
context 'on success' do
it_reports(<<-REPORT)
Mutant configuration:
- Matcher: #<Mutant::Matcher::Config match_expressions=[] subject_ignores=[] subject_selects=[]>
- Integration: null
+ Matcher: #<Mutant::Matcher::Config empty>
+ Integration: Mutant::Integration::Null
Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1