]> source.dussan.org Git - redmine.git/commitdiff
Merged r13860 (#18782).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 21:12:42 +0000 (21:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Jan 2015 21:12:42 +0000 (21:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13868 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/ui/issues_test.rb

index b78b88597eea9038e1e86e8e415bb8c4b8d702f1..f45f0990cca7e995f53942f581ce9309916d91b8 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