]> source.dussan.org Git - redmine.git/commitdiff
Fixed errors in UI tests (#18782).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 10:20:50 +0000 (10:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 10:20:50 +0000 (10:20 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13860 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index 5225e2f2906246efb85f5440fdf6cc5cf389735b..be9a52f383abd26016345098b80c31822511edb9 100644 (file)
@@ -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