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) 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' },