fix-testui-errors-r13854.diff

Katsuya HIDAKA, 2015-01-08 17:40

Download (1.32 KB)

View differences:

test/ui/issues_test.rb
60 60
      :field_format => 'string',
61 61
      :name => 'Field1',
62 62
      :is_for_all => true,
63
      :trackers => Tracker.find_all_by_id([1, 2])
63
      :trackers => Tracker.where(id: [1, 2])
64 64
    )
65 65
    field2 = IssueCustomField.create!(
66 66
      :field_format => 'string',
67 67
      :name => 'Field2',
68 68
      :is_for_all => true,
69
      :trackers => Tracker.find_all_by_id(2)
69
      :trackers => Tracker.where(id: 2)
70 70
    )
71 71

  
72 72
    Role.non_member.add_permission! :add_issues
......
188 188
      :field_format => 'string',
189 189
      :name => 'Form update CF',
190 190
      :is_for_all => true,
191
      :trackers => Tracker.find_all_by_name('Feature request')
191
      :trackers => Tracker.where(name: 'Feature request')
192 192
    )
193 193

  
194 194
    Role.non_member.add_permission! :edit_issues
195
-