Update Rails to 5.2.3 (#31113).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18028 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-03-31 09:58:08 +00:00
parent 359310749c
commit f24f0519be
5 changed files with 22 additions and 22 deletions

View File

@@ -639,7 +639,7 @@ class IssuesControllerTest < Redmine::ControllerTest
}
assert_response :success
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
assert response.body.starts_with?("#,")
lines = response.body.chomp.split("\n")
# default columns + id and project
@@ -653,7 +653,7 @@ class IssuesControllerTest < Redmine::ControllerTest
}
assert_response :success
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
end
def test_index_csv_without_any_filters
@@ -681,7 +681,7 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_response :success
end
assert_equal 'text/csv; header=present', response.content_type
assert_equal 'text/csv', response.content_type
headers = response.body.chomp.split("\n").first.split(',')
assert_include 'Description', headers
assert_include 'test_index_csv_with_description', response.body
@@ -697,7 +697,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:c => %w(subject spent_hours)
}
assert_response :success
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
lines = @response.body.chomp.split("\n")
assert_include "#{issue.id},#{issue.subject},7.33", lines
end
@@ -709,7 +709,7 @@ class IssuesControllerTest < Redmine::ControllerTest
}
assert_response :success
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
assert_match /\A#,/, response.body
lines = response.body.chomp.split("\n")
assert_equal IssueQuery.new.available_inline_columns.size, lines[0].split(',').size
@@ -781,7 +781,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:subject => str_utf8,
:format => 'csv'
}
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
lines = @response.body.chomp.split("\n")
header = lines[0]
status = (+"\xaa\xac\xbaA").force_encoding('Big5')
@@ -803,7 +803,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:format => 'csv',
:set_filter => 1
}
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
lines = @response.body.chomp.split("\n")
header = lines[0]
issue_line = lines.find {|l| l =~ /^#{issue.id},/}
@@ -827,7 +827,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:format => 'csv',
:set_filter => 1
}
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
lines = @response.body.chomp.split("\n")
assert_include "#{issue.id},1234.50,#{str1}", lines
end
@@ -845,7 +845,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:format => 'csv',
:set_filter => 1
}
assert_equal 'text/csv; header=present', @response.content_type
assert_equal 'text/csv', @response.content_type
lines = @response.body.chomp.split("\n")
assert_include "#{issue.id};1234,50;#{str1}", lines
end
@@ -1313,7 +1313,7 @@ class IssuesControllerTest < Redmine::ControllerTest
:format => 'csv'
}
assert_response :success
assert_equal 'text/csv; header=present', response.content_type
assert_equal 'text/csv', response.content_type
lines = response.body.chomp.split("\n")
assert_include '1,"Related to #7, Related to #8, Blocks #11"', lines
assert_include '2,Blocked by #12', lines