1039 |
1039 |
|
1040 |
1040 |
assert_response :success
|
1041 |
1041 |
assert_equal 'application/pdf', @response.media_type
|
1042 |
|
assert_equal 'attachment; filename="ecookbook.pdf"', @response.headers['Content-Disposition']
|
|
1042 |
assert_equal "attachment; filename=\"ecookbook.pdf\"; filename*=UTF-8''ecookbook.pdf", @response.headers['Content-Disposition']
|
1043 |
1043 |
assert @response.body.starts_with?('%PDF')
|
1044 |
1044 |
end
|
1045 |
1045 |
|
... | ... | |
1104 |
1104 |
assert_response :success
|
1105 |
1105 |
|
1106 |
1106 |
assert_equal 'application/pdf', @response.media_type
|
1107 |
|
assert_equal 'attachment; filename="CookBook_documentation.pdf"',
|
|
1107 |
assert_equal "attachment; filename=\"CookBook_documentation.pdf\"; filename*=UTF-8''CookBook_documentation.pdf",
|
1108 |
1108 |
@response.headers['Content-Disposition']
|
1109 |
1109 |
end
|
1110 |
1110 |
|
... | ... | |
1114 |
1114 |
assert_response :success
|
1115 |
1115 |
|
1116 |
1116 |
assert_equal 'text/html', @response.media_type
|
1117 |
|
assert_equal 'attachment; filename="CookBook_documentation.html"',
|
|
1117 |
assert_equal "attachment; filename=\"CookBook_documentation.html\"; filename*=UTF-8''CookBook_documentation.html",
|
1118 |
1118 |
@response.headers['Content-Disposition']
|
1119 |
1119 |
assert_select 'h1', :text => /CookBook documentation/
|
1120 |
1120 |
end
|
... | ... | |
1125 |
1125 |
assert_response :success
|
1126 |
1126 |
|
1127 |
1127 |
assert_equal 'text/html', @response.media_type
|
1128 |
|
assert_equal 'attachment; filename="CookBook_documentation.html"',
|
|
1128 |
assert_equal "attachment; filename=\"CookBook_documentation.html\"; filename*=UTF-8''CookBook_documentation.html",
|
1129 |
1129 |
@response.headers['Content-Disposition']
|
1130 |
1130 |
assert_select 'h1', :text => /CookBook documentation v2/
|
1131 |
1131 |
end
|
... | ... | |
1136 |
1136 |
assert_response :success
|
1137 |
1137 |
|
1138 |
1138 |
assert_equal 'text/plain', @response.media_type
|
1139 |
|
assert_equal 'attachment; filename="CookBook_documentation.txt"',
|
|
1139 |
assert_equal "attachment; filename=\"CookBook_documentation.txt\"; filename*=UTF-8''CookBook_documentation.txt",
|
1140 |
1140 |
@response.headers['Content-Disposition']
|
1141 |
1141 |
assert_include 'h1. CookBook documentation', @response.body
|
1142 |
1142 |
end
|
... | ... | |
1147 |
1147 |
assert_response :success
|
1148 |
1148 |
|
1149 |
1149 |
assert_equal 'text/plain', @response.media_type
|
1150 |
|
assert_equal 'attachment; filename="CookBook_documentation.txt"',
|
|
1150 |
assert_equal "attachment; filename=\"CookBook_documentation.txt\"; filename*=UTF-8''CookBook_documentation.txt",
|
1151 |
1151 |
@response.headers['Content-Disposition']
|
1152 |
1152 |
assert_include 'h1. CookBook documentation v2', @response.body
|
1153 |
1153 |
end
|