From 11372002f521e7194bb0dad4c81a3b26d729784c Mon Sep 17 00:00:00 2001 From: Brian John Date: Sun, 9 Dec 2018 14:08:18 -0600 Subject: [PATCH] fix offenses --- spec/simplecov_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/simplecov_spec.rb b/spec/simplecov_spec.rb index 54e8c2e5..336d0a15 100644 --- a/spec/simplecov_spec.rb +++ b/spec/simplecov_spec.rb @@ -173,19 +173,19 @@ end end - describe '.process_result' do + describe ".process_result" do before do expect(SimpleCov).to receive(:result_exit_status).and_return SimpleCov::ExitCodes::MINIMUM_COVERAGE expect(SimpleCov).to receive(:result?).and_return true end - context 'when the final result process' do + context "when the final result process" do let(:result) { double(SimpleCov::Result, :covered_percent => 0.0) } before { expect(SimpleCov).to receive(:final_result_process?).and_return true } it "returns the exit code from .result_exit_status" do expect(SimpleCov.process_result(result, SimpleCov::ExitCodes::SUCCESS)).to eq SimpleCov::ExitCodes::MINIMUM_COVERAGE end end - context 'when not the final result process' do + context "when not the final result process" do let(:result) { double(SimpleCov::Result, :covered_percent => 0.0) } before { expect(SimpleCov).to receive(:final_result_process?).and_return false } it "returns the success exit code" do