Skip to content

Commit

Permalink
post (not put) tocreate
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCohen committed Jul 24, 2024
1 parent b5cad25 commit ad76eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/observations/inat_imports_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit ad76eaf

Please sign in to comment.