diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 11:30:20 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 11:30:20 +0100 |
| commit | c0646186c2049e75ae932966aa0604d712b4f4c6 (patch) | |
| tree | 823483153c8c8b783d9837d767d1fe157fd9eb22 /test/controllers | |
| parent | 2cf0ffbffc8442efaba12364a07fc0f5e58b7432 (diff) | |
| download | operum-c0646186c2049e75ae932966aa0604d712b4f4c6.tar.gz operum-c0646186c2049e75ae932966aa0604d712b4f4c6.zip | |
csv: don't export underscores on "authors"
It does not make sense on this context.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/controllers')
| -rw-r--r-- | test/controllers/exports_controller_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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] |
