diff --git a/spec/support/corpus.rb b/spec/support/corpus.rb index 3b4e9ff8..9fa58705 100644 --- a/spec/support/corpus.rb +++ b/spec/support/corpus.rb @@ -50,7 +50,12 @@ module Corpus checkout start = Time.now paths = Pathname.glob(repo_path.join('**/*.rb')).sort_by(&:size).reverse - total = Parallel.map(paths, finish: method(:finish), start: method(:start), in_processes: parallel_processes) do |path| + options = { + finish: method(:finish), + start: method(:start), + in_processes: parallel_processes + } + total = Parallel.map(paths, options) do |path| count = 0 node = begin diff --git a/spec/unit/mutant/expression_spec.rb b/spec/unit/mutant/expression_spec.rb index 7f4f5db6..9b6e23c7 100644 --- a/spec/unit/mutant/expression_spec.rb +++ b/spec/unit/mutant/expression_spec.rb @@ -28,7 +28,10 @@ RSpec.describe Mutant::Expression do let(:input) { 'test-syntax' } it 'raises an exception' do - expect { subject }.to raise_error(Mutant::Expression::AmbiguousExpressionError, 'Ambiguous expression: "test-syntax"') + expect { subject }.to raise_error( + Mutant::Expression::AmbiguousExpressionError, + 'Ambiguous expression: "test-syntax"' + ) end end end