spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.16 vs spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.17
- old
+ new
@@ -1,15 +1,17 @@
+# frozen_string_literal: true
+
RSpec.describe Mutant::Reporter::CLI::Printer::Status do
setup_shared_context
let(:reportable) { status }
describe '.call' do
context 'with empty scheduler' do
with(:env_result) { { subject_results: [] } }
- it_reports <<-REPORT
+ it_reports <<~REPORT
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
Jobs: 1
Includes: []
@@ -30,11 +32,11 @@
context 'with scheduler active on one subject' do
context 'without progress' do
with(:status) { { active_jobs: [].to_set } }
- it_reports(<<-REPORT)
+ it_reports(<<~REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
Jobs: 1
Includes: []
@@ -57,11 +59,11 @@
with(:status) { { active_jobs: [job_b, job_a].to_set } }
context 'on failure' do
with(:mutation_a_test_result) { { passed: true } }
- it_reports(<<-REPORT)
+ it_reports(<<~REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
Jobs: 1
Includes: []
@@ -85,10 +87,10 @@
(01/02) 50% - killtime: 2.00s runtime: 2.00s overhead: 0.00s
REPORT
end
context 'on success' do
- it_reports(<<-REPORT)
+ it_reports(<<~REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
Jobs: 1
Includes: []