From c0e6eb6359acb53800722964bd94450b81dc9b94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Aug 2023 09:13:10 +0000 Subject: [PATCH 1/2] Bump minitest from 5.18.1 to 5.19.0 Bumps [minitest](https://github.com/minitest/minitest) from 5.18.1 to 5.19.0. - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](https://github.com/minitest/minitest/compare/v5.18.1...v5.19.0) --- updated-dependencies: - dependency-name: minitest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index b3cc1307c..e7874b297 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -212,7 +212,7 @@ GEM mime-types-data (3.2023.0218.1) mini_mime (1.1.2) mini_portile2 (2.8.4) - minitest (5.18.1) + minitest (5.19.0) mocha (2.1.0) ruby2_keywords (>= 0.0.5) msgpack (1.6.0) From 24a96372aa25e336e96b02706795eaf95d87ca89 Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Thu, 3 Aug 2023 10:25:20 +0100 Subject: [PATCH 2/2] Replace MiniTest -> Minitest Following minitest-5.19.0 upgrade --- test/unit/post_out_of_sync_deploys_service_test.rb | 6 +++--- test/unit/tasks/post_out_of_sync_deploys_test.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/post_out_of_sync_deploys_service_test.rb b/test/unit/post_out_of_sync_deploys_service_test.rb index b8d136728..8018fc49a 100644 --- a/test/unit/post_out_of_sync_deploys_service_test.rb +++ b/test/unit/post_out_of_sync_deploys_service_test.rb @@ -12,10 +12,10 @@ class PostOutOfSyncDeploysServiceTest < ActiveSupport::TestCase team: "#govuk-publishing-platform" }], } - find_service_mock = MiniTest::Mock.new + find_service_mock = Minitest::Mock.new find_service_mock.expect(:call, teams_out_of_sync_deploys) - slack_poster_mock = MiniTest::Mock.new + slack_poster_mock = Minitest::Mock.new expected_args = [ "Hello :paw_prints:, this is your regular badgering to deploy!\n" \ "\n" \ @@ -55,7 +55,7 @@ class PostOutOfSyncDeploysServiceTest < ActiveSupport::TestCase } FindOutOfSyncDeploysService.any_instance.stubs(:call).returns(teams_out_of_sync_deploys) - slack_poster_mock = MiniTest::Mock.new + slack_poster_mock = Minitest::Mock.new expected_message_one_args = [ "Hello :paw_prints:, this is your regular badgering to deploy!\n" \ "\n" \ diff --git a/test/unit/tasks/post_out_of_sync_deploys_test.rb b/test/unit/tasks/post_out_of_sync_deploys_test.rb index 6a4f80c19..6268c8193 100644 --- a/test/unit/tasks/post_out_of_sync_deploys_test.rb +++ b/test/unit/tasks/post_out_of_sync_deploys_test.rb @@ -7,7 +7,7 @@ def setup end test "it should call PostOutOfSyncDeploysService" do - post_out_of_sync_deploys_service_mock = MiniTest::Mock.new + post_out_of_sync_deploys_service_mock = Minitest::Mock.new post_out_of_sync_deploys_service_mock.expect(:call, nil) PostOutOfSyncDeploysService.stub(:call, post_out_of_sync_deploys_service_mock) do