Skip to content

Commit

Permalink
Replace MiniTest -> Minitest
Browse files Browse the repository at this point in the history
Following minitest-5.19.0 upgrade
  • Loading branch information
AgaDufrat committed Aug 3, 2023
1 parent c0e6eb6 commit 24a9637
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/unit/post_out_of_sync_deploys_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tasks/post_out_of_sync_deploys_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24a9637

Please sign in to comment.