From c0646186c2049e75ae932966aa0604d712b4f4c6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 20 Mar 2024 11:30:20 +0100 Subject: csv: don't export underscores on "authors" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It does not make sense on this context. Signed-off-by: Miquel Sabaté Solà --- test/controllers/exports_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/controllers/exports_controller_test.rb b/test/controllers/exports_controller_test.rb index eefff6f..fe94362 100644 --- a/test/controllers/exports_controller_test.rb +++ b/test/controllers/exports_controller_test.rb @@ -8,6 +8,9 @@ class ExportsControllerTest < ActionDispatch::IntegrationTest get search_exports_url(0, format: 'csv') body = @response.body.split("\n") + + assert_nil body.last.index('_') + targets = body.map { |b| b.split(',').first } assert_equal targets, [things(:thing2).target, things(:thing1).target] -- cgit v1.2.3