Skip to content

Commit

Permalink
fix offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
f1sherman committed Dec 9, 2018
1 parent 9ba0171 commit 1137200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/simplecov_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1137200

Please sign in to comment.