Defect #28669 » 0001-failing-test-case-csv-export-with-project-filter.patch
| test/functional/issues_controller_test.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
def test_index_csv_subprojects
|
||
|
get :index, :params => {
|
||
|
:project_id => 1,
|
||
|
:c => ['id'],
|
||
|
:format => 'csv',
|
||
|
:f => ['project_id'],
|
||
|
:op => {'project_id' => '='},
|
||
|
:v => {'project_id' => [3]},
|
||
|
:set_filter => 1
|
||
|
}
|
||
|
lines = @response.body.chomp.split("\n")
|
||
|
lines.shift # headers
|
||
|
assert_include "5", lines
|
||
|
assert_include "13", lines
|
||
|
assert_equal 2, lines.count
|
||
|
end
|
||
|
def test_index_pdf
|
||
|
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
|
||
|
with_settings :default_language => lang do
|
||