]> source.dussan.org Git - redmine.git/commitdiff
IssuesSystemTest fails with ArgumentError in Ruby 3.1 (#36205, #36360).
authorGo MAEDA <maeda@farend.jp>
Mon, 27 Dec 2021 09:35:38 +0000 (09:35 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 27 Dec 2021 09:35:38 +0000 (09:35 +0000)
Patch by Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@21328 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/system/issues_test.rb

index ab31a3e33b38f2c223265ddc07ebc562ec9b70c4..f62949d39b677e2944e400f6d0fcdd1d0eeb3130 100644 (file)
@@ -225,7 +225,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
     log_user('jsmith', 'jsmith')
     visit "/issues/#{issue.id}"
     page.first(:link, 'Edit').click
-    assert page.has_select?("issue_status_id", {:selected => "New"})
+    assert page.has_select?("issue_status_id", selected: "New")
     page.find("#issue_status_id").select("Closed")
     assert_no_difference 'Issue.count' do
       page.first(:button, 'Submit').click
@@ -398,7 +398,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
 
     page.find('#issue_project_id').select('OnlineStore')
     # wait for ajax response
-    assert page.has_select?('issue_project_id', {:selected => 'OnlineStore'})
+    assert page.has_select?('issue_project_id', selected: 'OnlineStore')
 
     submit_buttons = page.all('input[type=submit]')
     assert_equal 2, submit_buttons.size
@@ -462,7 +462,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
 
     page.find('#issue_project_id').select('OnlineStore')
     # wait for ajax response
-    assert page.has_select?('issue_project_id', {:selected => 'OnlineStore'})
+    assert page.has_select?('issue_project_id', selected: 'OnlineStore')
 
     submit_buttons = page.all('input[type=submit]')
     assert_equal 2, submit_buttons.size