From 574b45ca34bd94ea4d3e1c2805c159bac0b6cf86 Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Tue, 26 Dec 2023 07:42:54 -0800 Subject: [PATCH] Update rspec to version 3.12 --- Gemfile | 3 +-- Gemfile.lock | 25 ++++++++++++------------- spec/simplecov_spec.rb | 4 ++-- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/Gemfile b/Gemfile index 8faebb62..4e5fa9c5 100644 --- a/Gemfile +++ b/Gemfile @@ -19,8 +19,7 @@ group :development do gem "cucumber", "~> 6.0" gem "minitest" gem "rake" - gem "rspec", "~> 3.10" - gem "rspec-mocks", "3.10.2" + gem "rspec" gem "pry" gem "rubocop" gem "test-unit" diff --git a/Gemfile.lock b/Gemfile.lock index d696c911..480e47ea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,19 +134,19 @@ GEM rake (13.1.0) regexp_parser (2.8.3) rexml (3.2.6) - rspec (3.10.0) - rspec-core (~> 3.10.0) - rspec-expectations (~> 3.10.0) - rspec-mocks (~> 3.10.0) - rspec-core (3.10.2) - rspec-support (~> 3.10.0) - rspec-expectations (3.10.2) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-mocks (3.10.2) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.10.0) - rspec-support (3.10.3) + rspec-support (~> 3.12.0) + rspec-support (3.12.1) rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -202,8 +202,7 @@ DEPENDENCIES pry rackup rake - rspec (~> 3.10) - rspec-mocks (= 3.10.2) + rspec rubocop simplecov! test-unit diff --git a/spec/simplecov_spec.rb b/spec/simplecov_spec.rb index 159c83f1..5e3937ca 100644 --- a/spec/simplecov_spec.rb +++ b/spec/simplecov_spec.rb @@ -327,13 +327,13 @@ def expect_merged end it "starts coverage in lines mode by default" do - expect(Coverage).to receive(:start).with(lines: true) + expect(Coverage).to receive(:start).with({lines: true}) SimpleCov.send :start_coverage_measurement end it "starts coverage with lines and branches if branches is activated" do - expect(Coverage).to receive(:start).with(lines: true, branches: true) + expect(Coverage).to receive(:start).with({lines: true, branches: true}) SimpleCov.enable_coverage :branch