spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.3 vs spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.4
- old
+ new
@@ -3,11 +3,11 @@
let(:reportable) { status }
describe '.call' do
context 'with empty scheduler' do
- update(:env_result) { { subject_results: [] } }
+ with(:env_result) { { subject_results: [] } }
it_reports <<-REPORT
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
@@ -26,11 +26,11 @@
Expected: 100.00%
Active subjects: 0
REPORT
context 'on non default coverage expectation' do
- update(:config) { { expected_coverage: 0.1r } }
+ with(:config) { { expected_coverage: 0.1r } }
it_reports <<-REPORT
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
@@ -52,11 +52,11 @@
end
end
context 'with scheduler active on one subject' do
context 'without progress' do
- update(:status) { { active_jobs: [].to_set } }
+ with(:status) { { active_jobs: [].to_set } }
it_reports(<<-REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
@@ -76,13 +76,13 @@
Active subjects: 0
REPORT
end
context 'with progress' do
- update(:status) { { active_jobs: [job_b, job_a].to_set } }
+ with(:status) { { active_jobs: [job_b, job_a].to_set } }
context 'on failure' do
- update(:mutation_a_test_result) { { passed: true } }
+ with(:mutation_a_test_result) { { passed: true } }
it_reports(<<-REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null