diff options
author | Go MAEDA <maeda@farend.jp> | 2022-03-14 14:25:24 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-03-14 14:25:24 +0000 |
commit | 2d6f552599d0e632953372b7a942a5eaab099631 (patch) | |
tree | 7f5efa62f8ecb0d4a27623c4ce09ca8b1662567d /test/integration/api_test/issues_test.rb | |
parent | d15d23b7ac878ff3d0feff64051a0be0ce8a10fd (diff) | |
download | redmine-2d6f552599d0e632953372b7a942a5eaab099631.tar.gz redmine-2d6f552599d0e632953372b7a942a5eaab099631.zip |
Replace Member.find_or_new with ActiveRecord's find_or_initialize_by (#36730).
git-svn-id: http://svn.redmine.org/redmine/trunk@21456 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 64ac2d4c8..29b3390d2 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -437,7 +437,7 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base issue = Issue.find(1) assert_equal 1, issue.tracker_id # Bug issue.update(:status_id => 2) # Assigned - member = Member.find_or_new(issue.project, User.find_by_login('dlopper')) + member = Member.find_by(:project => issue.project, :user => User.find_by(:login => 'dlopper')) assert_equal [2], member.role_ids # Developer get '/issues/1.xml?include=allowed_statuses', :headers => credentials('dlopper', 'foo') |