Update file download HTTP headers in test

This commit is contained in:
Karl Erik Õunapuu 2020-06-01 10:36:49 +03:00
parent 1575cf5ea1
commit 155b6e98cb
7 changed files with 11 additions and 11 deletions

View file

@ -13,7 +13,7 @@ class RegistrarAreaDomainsIntegrationTest < ApplicationIntegrationTest
assert_response :ok
assert_equal "#{Mime[:csv]}; charset=utf-8", response.headers['Content-Type']
assert_equal %(attachment; filename="Domains_#{l(now, format: :filename)}.csv"),
assert_equal %(attachment; filename="Domains_#{l(now, format: :filename)}.csv; filename*=UTF-8''Domains_#{l(now, format: :filename)}.csv"),
response.headers['Content-Disposition']
assert_not_empty response.body
end