Defect #28669 » 0001-failing-test-case-csv-export-with-project-filter.patch
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 784 | 784 |
end |
| 785 | 785 |
end |
| 786 | 786 | |
| 787 |
def test_index_csv_subprojects |
|
| 788 |
get :index, :params => {
|
|
| 789 |
:project_id => 1, |
|
| 790 |
:c => ['id'], |
|
| 791 |
:format => 'csv', |
|
| 792 |
:f => ['project_id'], |
|
| 793 |
:op => {'project_id' => '='},
|
|
| 794 |
:v => {'project_id' => [3]},
|
|
| 795 |
:set_filter => 1 |
|
| 796 |
} |
|
| 797 |
lines = @response.body.chomp.split("\n")
|
|
| 798 |
lines.shift # headers |
|
| 799 |
assert_include "5", lines |
|
| 800 |
assert_include "13", lines |
|
| 801 |
assert_equal 2, lines.count |
|
| 802 |
end |
|
| 803 | ||
| 787 | 804 |
def test_index_pdf |
| 788 | 805 |
["en", "zh", "zh-TW", "ja", "ko"].each do |lang| |
| 789 | 806 |
with_settings :default_language => lang do |