Project

General

Profile

Actions

Defect #32921

closed

Rails 6: add header=present to csv tests

Added by Pavel Rosický about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

fixes

Failure:
IssuesControllerTest#test_index_csv_with_all_columns [/redmine/test/functional/issues_controller_test.rb:878]:
Expected: "text/csv" 
  Actual: "text/csv; header=present" 


Files

csvheaders.patch (8.12 KB) csvheaders.patch Pavel Rosický, 2020-01-29 23:06
csvheaders2.patch (7.9 KB) csvheaders2.patch reverts test_index_send_nothing_if_query_is_invalid Pavel Rosický, 2020-01-29 23:12
0001-Rails-6-add-header-present-to-csv-tests.patch (9.39 KB) 0001-Rails-6-add-header-present-to-csv-tests.patch Marius BĂLTEANU, 2020-01-31 14:54

Related issues

Related to Redmine - Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloadingClosedGo MAEDA

Actions
Actions #2

Updated by Marius BĂLTEANU about 4 years ago

  • Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
Actions #3

Updated by Marius BĂLTEANU about 4 years ago

Pavel, maybe you have a clue because I can't find or understand why media_type returns "text/csv; header=present" and not only text/csv as is explained here.

Actions #4

Updated by Pavel Rosický about 4 years ago

yeah, because the documentation is obsolete, it was changed here https://github.com/rails/rails/pull/37017

Actions #5

Updated by Marius BĂLTEANU about 4 years ago

Pavel Rosický wrote:

yeah, because the documentation is obsolete, it was changed here https://github.com/rails/rails/pull/37017

Thanks, it's clear now. Your patches look good to me and the failing tests because of this are passing now. I'm attaching a merged version of your patches.

Actions #6

Updated by Go MAEDA about 4 years ago

  • Category set to Rails support
Actions #7

Updated by Marius BĂLTEANU about 3 years ago

  • Tracker changed from Patch to Defect
Actions #8

Updated by Marius BĂLTEANU about 3 years ago

  • Target version deleted (5.0.0)
Actions #9

Updated by Go MAEDA about 3 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch as a part of #29914.

Actions

Also available in: Atom PDF