Feature #35505 » test-35505.patch
| test/integration/api_test/trackers_test.rb | ||
|---|---|---|
| 23 | 23 |
fixtures :trackers |
| 24 | 24 | |
| 25 | 25 |
test "GET /trackers.xml should return trackers" do |
| 26 |
Tracker.find(2).update_attribute :core_fields, %w[assigned_to_id due_date] |
|
| 26 | 27 |
get '/trackers.xml' |
| 27 | 28 | |
| 28 | 29 |
assert_response :success |
| ... | ... | |
| 31 | 32 |
assert_select 'trackers[type=array] tracker id', :text => '2' do |
| 32 | 33 |
assert_select '~ name', :text => 'Feature request' |
| 33 | 34 |
assert_select '~ description', :text => 'Description for Feature request tracker' |
| 35 |
assert_select '~ enabled_standard_fields[type=array]' do |
|
| 36 |
assert_select 'enabled_standard_fields>field', :count => 2 |
|
| 37 |
assert_select 'enabled_standard_fields>field', :text => 'assigned_to_id' |
|
| 38 |
assert_select 'enabled_standard_fields>field', :text => 'due_date' |
|
| 39 |
end |
|
| 34 | 40 |
end |
| 35 | 41 |
end |
| 36 | 42 |
end |
- « Previous
- 1
- 2
- Next »