From 4a026048f2df62d32bda50b59b6049feb86cd7a0 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 19:15:19 +0000 Subject: [PATCH 1/2] Update mocha to version 3.0.1 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index ab170303..a899939f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -203,7 +203,7 @@ GEM minitest-rails-capybara (0.0.2) capybara minitest-rails - mocha (2.8.2) + mocha (3.0.1) ruby2_keywords (>= 0.0.5) msgpack (1.8.0) multi_json (1.15.0) From 644844b7938292aca76c22964e055dab5061fbc1 Mon Sep 17 00:00:00 2001 From: Ben Topping Date: Tue, 3 Feb 2026 10:46:59 +0000 Subject: [PATCH 2/2] tests: corrects method stub expectations for stamps_controller --- test/controllers/stamps_controller_test.rb | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/test/controllers/stamps_controller_test.rb b/test/controllers/stamps_controller_test.rb index 01105bdf..5b56b80b 100644 --- a/test/controllers/stamps_controller_test.rb +++ b/test/controllers/stamps_controller_test.rb @@ -112,8 +112,8 @@ class StampsControllerTest < ActionController::TestCase @robot.expects(:valid?) .with('58000000180', @lot, - '58000000281' => @plate_a, - '58000000382' => @plate_b) + { '58000000281' => @plate_a, + '58000000382' => @plate_b }) .returns([true, 'Okay']) @request.headers['Accept'] = 'application/json' post :validation, params: { @@ -147,8 +147,8 @@ class StampsControllerTest < ActionController::TestCase @robot.expects(:valid?) .with('58000000180', @lot, - '58000000281' => @plate_a, - '58000000382' => @plate_c) + { '58000000281' => @plate_a, + '58000000382' => @plate_c }) .returns([false, 'Not okay']) @request.headers['Accept'] = 'application/json' @@ -242,13 +242,12 @@ class StampsControllerTest < ActionController::TestCase @robot.expects(:valid?) .with('58000000180', @lot, - '58000000281' => @plate_a, - '58000000382' => @plate_b) + { '58000000281' => @plate_a, '58000000382' => @plate_b }) .returns([true, 'Okay']) @robot.expects(:beds_for).with( - '58000000281' => @plate_a, - '58000000382' => @plate_b + { '58000000281' => @plate_a, + '58000000382' => @plate_b } ) .returns([ { bed: '2', order: 1, qcable: '11111111-2222-3333-4444-100000000001' }, @@ -303,13 +302,13 @@ class StampsControllerTest < ActionController::TestCase @robot.expects(:valid?) .with('58000000180', @lot, - '58000000281' => @plate_a, - '58000000382' => @plate_b) + { '58000000281' => @plate_a, + '58000000382' => @plate_b }) .returns([true, 'Okay']) @robot.expects(:beds_for).with( - '58000000281' => @plate_a, - '58000000382' => @plate_b + { '58000000281' => @plate_a, + '58000000382' => @plate_b } ) .returns([ { bed: '2', order: 1, qcable: '11111111-2222-3333-4444-100000000001' },