From ad76eaf20b1e9317960ab742f46d0bec928bf224 Mon Sep 17 00:00:00 2001 From: "Joseph D. Cohen" Date: Wed, 24 Jul 2024 15:02:26 -0700 Subject: [PATCH] `post` (not `put`) to`create` --- test/controllers/observations/inat_imports_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/observations/inat_imports_controller_test.rb b/test/controllers/observations/inat_imports_controller_test.rb index 9bf1791a41..c738d3a1b5 100644 --- a/test/controllers/observations/inat_imports_controller_test.rb +++ b/test/controllers/observations/inat_imports_controller_test.rb @@ -65,7 +65,7 @@ def test_import_missing_username params = { inat_ids: id } login(user.login) - put(:create, params: params) + post(:create, params: params) assert_flash_text(:inat_missing_username.l) assert_form_action(action: :create) @@ -85,7 +85,7 @@ def test_import_no_consent assert_no_difference("Observation.count", "iNat obss imported without consent") do - put(:create, params: params) + post(:create, params: params) end assert_flash_warning