API server logs used to report 'format: html' when running functional tests.
With these additions, it now reports 'json', but this is not enough to fix
the issue about nested arrays being flattened when running tests.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
/tmp
.byebug_history
+package-lock.json
+
/config/.secret_token
/config/initializers/secret_token.rb
class ActionController::TestCase
setup do
@test_counter = 0
+ # Trying this:
+ # https://stackoverflow.com/questions/44119273/rails-5-1-minitest-flattens-array-of-arrays-in-params
+ self.request.headers['Accept'] = 'application/json'
+ self.request.headers['Content-Type'] = 'application/json'
end
def check_counter action