From b236be138d0c8a7c59882a180d3c6ce70ebaac8c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 10 Jan 2015 10:20:50 +0000 Subject: [PATCH] Fixed errors in UI tests (#18782). git-svn-id: http://svn.redmine.org/redmine/trunk@13860 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/ui/issues_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 5225e2f29..be9a52f38 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -60,13 +60,13 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base :field_format => 'string', :name => 'Field1', :is_for_all => true, - :trackers => Tracker.find_all_by_id([1, 2]) + :trackers => Tracker.where(:id => [1, 2]) ) field2 = IssueCustomField.create!( :field_format => 'string', :name => 'Field2', :is_for_all => true, - :trackers => Tracker.find_all_by_id(2) + :trackers => Tracker.where(:id => 2) ) Role.non_member.add_permission! :add_issues @@ -188,7 +188,7 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base :field_format => 'string', :name => 'Form update CF', :is_for_all => true, - :trackers => Tracker.find_all_by_name('Feature request') + :trackers => Tracker.where(:name => 'Feature request') ) Role.non_member.add_permission! :edit_issues -- 2.39.5