Change AlignHash rubocop preference to table
This commit is contained in:
parent
7239a39dd9
commit
c4dd8693cb
9 changed files with 49 additions and 45 deletions
|
@ -155,3 +155,7 @@ IndentArray:
|
|||
# My style is not supported
|
||||
MultilineMethodCallIndentation:
|
||||
Enabled: false
|
||||
|
||||
# Align keys and values in a multiline hash
|
||||
Style/AlignHash:
|
||||
EnforcedColonStyle: table
|
||||
|
|
|
@ -61,10 +61,10 @@ module Mutant
|
|||
passed = @runner.run_specs(@world.ordered_example_groups).equal?(EXIT_SUCCESS)
|
||||
@output.rewind
|
||||
Result::Test.new(
|
||||
output: @output.read,
|
||||
passed: passed,
|
||||
runtime: Time.now - start,
|
||||
tests: tests
|
||||
output: @output.read,
|
||||
passed: passed,
|
||||
runtime: Time.now - start,
|
||||
tests: tests
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ module Mutant
|
|||
Actor::Message.new(
|
||||
:result,
|
||||
JobResult.new(
|
||||
job: job,
|
||||
job: job,
|
||||
payload: result
|
||||
)
|
||||
)
|
||||
|
|
|
@ -52,8 +52,8 @@ module SharedContext
|
|||
|
||||
let(:config) do
|
||||
Mutant::Config::DEFAULT.with(
|
||||
jobs: 1,
|
||||
reporter: Mutant::Reporter::Null.new
|
||||
jobs: 1,
|
||||
reporter: Mutant::Reporter::Null.new
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -94,19 +94,19 @@ module SharedContext
|
|||
|
||||
let(:mutation_a_test_result) do
|
||||
Mutant::Result::Test.new(
|
||||
tests: [test_a],
|
||||
passed: false,
|
||||
runtime: 1.0,
|
||||
tests: [test_a],
|
||||
passed: false,
|
||||
runtime: 1.0,
|
||||
output: 'mutation a test result output'
|
||||
)
|
||||
end
|
||||
|
||||
let(:mutation_b_test_result) do
|
||||
Mutant::Result::Test.new(
|
||||
tests: [test_a],
|
||||
passed: false,
|
||||
runtime: 1.0,
|
||||
output: 'mutation b test result output'
|
||||
tests: [test_a],
|
||||
passed: false,
|
||||
runtime: 1.0,
|
||||
output: 'mutation b test result output'
|
||||
)
|
||||
end
|
||||
|
||||
|
|
4
spec/unit/mutant/env/bootstrap_spec.rb
vendored
4
spec/unit/mutant/env/bootstrap_spec.rb
vendored
|
@ -177,8 +177,8 @@ RSpec.describe Mutant::Env::Bootstrap do
|
|||
Mutant::Scope.new(TestApp::Empty, match_expressions.last),
|
||||
Mutant::Scope.new(TestApp::Literal, match_expressions.first)
|
||||
],
|
||||
mutations: subjects.flat_map(&:mutations),
|
||||
subjects: subjects
|
||||
mutations: subjects.flat_map(&:mutations),
|
||||
subjects: subjects
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -41,9 +41,9 @@ RSpec.describe Mutant::Env do
|
|||
let(:mutation_subject) do
|
||||
instance_double(
|
||||
Mutant::Subject,
|
||||
context: context,
|
||||
context: context,
|
||||
identification: 'subject',
|
||||
source: 'original'
|
||||
source: 'original'
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -53,7 +53,7 @@ RSpec.describe Mutant::Env do
|
|||
specify do
|
||||
should eql(
|
||||
Mutant::Result::Mutation.new(
|
||||
mutation: mutation,
|
||||
mutation: mutation,
|
||||
test_result: test_result
|
||||
)
|
||||
)
|
||||
|
|
|
@ -88,8 +88,8 @@ RSpec.describe Mutant::Integration::Rspec do
|
|||
let(:world) do
|
||||
double(
|
||||
'world',
|
||||
example_groups: example_groups,
|
||||
filtered_examples: filtered_examples
|
||||
example_groups: example_groups,
|
||||
filtered_examples: filtered_examples
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ RSpec.describe Mutant::Isolation::Fork do
|
|||
receiver: io,
|
||||
selector: :pipe,
|
||||
arguments: [binmode: true],
|
||||
reaction: {
|
||||
reaction: {
|
||||
yields: [[reader, writer]]
|
||||
}
|
||||
}
|
||||
|
@ -53,25 +53,25 @@ RSpec.describe Mutant::Isolation::Fork do
|
|||
[
|
||||
*prefork_expectations,
|
||||
{
|
||||
receiver: process,
|
||||
selector: :fork,
|
||||
reaction: {
|
||||
yields: [],
|
||||
return: pid
|
||||
receiver: process,
|
||||
selector: :fork,
|
||||
reaction: {
|
||||
yields: [],
|
||||
return: pid
|
||||
}
|
||||
},
|
||||
# Inside the killfork
|
||||
{
|
||||
receiver: reader,
|
||||
selector: :close
|
||||
receiver: reader,
|
||||
selector: :close
|
||||
},
|
||||
{
|
||||
receiver: writer,
|
||||
selector: :binmode
|
||||
receiver: writer,
|
||||
selector: :binmode
|
||||
},
|
||||
{
|
||||
receiver: devnull,
|
||||
selector: :call,
|
||||
receiver: devnull,
|
||||
selector: :call,
|
||||
reaction: {
|
||||
yields: [nullio]
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ RSpec.describe Mutant::Isolation::Fork do
|
|||
receiver: marshal,
|
||||
selector: :dump,
|
||||
arguments: [block_return],
|
||||
reaction: {
|
||||
reaction: {
|
||||
return: block_return_blob
|
||||
}
|
||||
},
|
||||
|
@ -100,19 +100,19 @@ RSpec.describe Mutant::Isolation::Fork do
|
|||
arguments: [block_return_blob]
|
||||
},
|
||||
{
|
||||
receiver: writer,
|
||||
selector: :close
|
||||
receiver: writer,
|
||||
selector: :close
|
||||
},
|
||||
# Outside the killfork
|
||||
{
|
||||
receiver: writer,
|
||||
selector: :close
|
||||
receiver: writer,
|
||||
selector: :close
|
||||
},
|
||||
{
|
||||
receiver: marshal,
|
||||
selector: :load,
|
||||
arguments: [reader],
|
||||
reaction: {
|
||||
reaction: {
|
||||
return: block_return
|
||||
}
|
||||
},
|
||||
|
|
|
@ -32,7 +32,7 @@ RSpec.describe Mutant::Zombifier do
|
|||
expected_payload: {
|
||||
logical_name: 'project'
|
||||
},
|
||||
return_value: true
|
||||
return_value: true
|
||||
),
|
||||
MutantSpec::RubyVM::EventExpectation::Eval.new(
|
||||
expected_payload: {
|
||||
|
@ -41,20 +41,20 @@ RSpec.describe Mutant::Zombifier do
|
|||
source_location: 'a/project.rb'
|
||||
},
|
||||
trigger_requires: %w[foo bar],
|
||||
return_value: nil
|
||||
return_value: nil
|
||||
),
|
||||
MutantSpec::RubyVM::EventExpectation::Require.new(
|
||||
expected_payload: {
|
||||
logical_name: 'foo'
|
||||
},
|
||||
trigger_requires: %w[bar],
|
||||
return_value: true
|
||||
return_value: true
|
||||
),
|
||||
MutantSpec::RubyVM::EventExpectation::Require.new(
|
||||
expected_payload: {
|
||||
logical_name: 'bar'
|
||||
},
|
||||
return_value: true
|
||||
return_value: true
|
||||
),
|
||||
MutantSpec::RubyVM::EventExpectation::Eval.new(
|
||||
expected_payload: {
|
||||
|
@ -63,13 +63,13 @@ RSpec.describe Mutant::Zombifier do
|
|||
source_location: 'b/bar.rb'
|
||||
},
|
||||
trigger_requires: %w[],
|
||||
return_value: nil
|
||||
return_value: nil
|
||||
),
|
||||
MutantSpec::RubyVM::EventExpectation::Require.new(
|
||||
expected_payload: {
|
||||
logical_name: 'bar'
|
||||
},
|
||||
return_value: false
|
||||
return_value: false
|
||||
)
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue