fixed multiple style guide violations
This commit is contained in:
@ -27,10 +27,8 @@ describe DockerContainerPool do
|
||||
end
|
||||
|
||||
it 'destroys all containers' do
|
||||
described_class.instance_variable_get(:@containers).each do |key, value|
|
||||
value.each do |container|
|
||||
expect(DockerClient).to receive(:destroy_container).with(container)
|
||||
end
|
||||
described_class.instance_variable_get(:@containers).values.flatten.each do |container|
|
||||
expect(DockerClient).to receive(:destroy_container).with(container)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,7 +10,7 @@ describe JunitAdapter do
|
||||
let(:stdout) { "FAILURES!!!\nTests run: #{count}, Failures: #{failed}" }
|
||||
|
||||
it 'returns the correct numbers' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: count, failed: failed})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: count, failed: failed)
|
||||
end
|
||||
end
|
||||
|
||||
@ -19,7 +19,7 @@ describe JunitAdapter do
|
||||
let(:stdout) { "OK (#{count} tests)" }
|
||||
|
||||
it 'returns the correct numbers' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: count, passed: count})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: count, passed: count)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ describe PyUnitAdapter do
|
||||
|
||||
describe '#parse_output' do
|
||||
it 'returns the correct numbers' do
|
||||
expect(adapter.parse_output(stderr: stderr)).to eq({count: count, failed: failed})
|
||||
expect(adapter.parse_output(stderr: stderr)).to eq(count: count, failed: failed)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ describe RspecAdapter do
|
||||
|
||||
describe '#parse_output' do
|
||||
it 'returns the correct numbers' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: count, failed: failed})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: count, failed: failed)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ describe SqlResultSetComparatorAdapter do
|
||||
let(:stdout) { "Missing tuples: [1]\nUnexpected tuples: []" }
|
||||
|
||||
it 'considers the test as failed' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: 1, failed: 1})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: 1, failed: 1)
|
||||
end
|
||||
end
|
||||
|
||||
@ -16,7 +16,7 @@ describe SqlResultSetComparatorAdapter do
|
||||
let(:stdout) { "Missing tuples: []\nUnexpected tuples: [1]" }
|
||||
|
||||
it 'considers the test as failed' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: 1, failed: 1})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: 1, failed: 1)
|
||||
end
|
||||
end
|
||||
|
||||
@ -24,7 +24,7 @@ describe SqlResultSetComparatorAdapter do
|
||||
let(:stdout) { "Missing tuples: []\nUnexpected tuples: []" }
|
||||
|
||||
it 'considers the test as passed' do
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq({count: 1, passed: 1})
|
||||
expect(adapter.parse_output(stdout: stdout)).to eq(count: 1, passed: 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user