Project

General

Profile

Feature #35505 » test-35505.patch

Go MAEDA, 2021-07-01 13:42

View differences:

test/integration/api_test/trackers_test.rb
fixtures :trackers
test "GET /trackers.xml should return trackers" do
Tracker.find(2).update_attribute :core_fields, %w[assigned_to_id due_date]
get '/trackers.xml'
assert_response :success
......
assert_select 'trackers[type=array] tracker id', :text => '2' do
assert_select '~ name', :text => 'Feature request'
assert_select '~ description', :text => 'Description for Feature request tracker'
assert_select '~ enabled_standard_fields[type=array]' do
assert_select 'enabled_standard_fields>field', :count => 2
assert_select 'enabled_standard_fields>field', :text => 'assigned_to_id'
assert_select 'enabled_standard_fields>field', :text => 'due_date'
end
end
end
end
(2-2/2)