summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-06-16 21:20:58 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-06-16 21:20:58 +0200
commit20adfb53693879a4b5c29b752fc06a130df18d42 (patch)
tree832c6cb9a87fa7f769560b7be3d4a798a2d49ad8 /doc
parent7b1eb2a669ad2a44dbe89d7d289d72870cbd74e7 (diff)
downloadgitlab-ce-rails5-nil-formats.tar.gz
Fix nil formats testrails5-nil-formats
One of the spec files sets `nil` value for env varialbe `action_dispatch.request.formats`. Rather than setting `nil` value, we can delete the `action_dispatch.request.formats` key from `env` (which should be closer to real use case anyway). The reason is that in Rails 5, `formats` method does not set default array of formats if the env key is already set (even if set to `nil`).
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions