diff options
Diffstat (limited to 'test/controllers/exports_controller_test.rb')
| -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] |
