diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-16 21:20:58 +0200 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-16 21:20:58 +0200 |
commit | 20adfb53693879a4b5c29b752fc06a130df18d42 (patch) | |
tree | 832c6cb9a87fa7f769560b7be3d4a798a2d49ad8 /doc | |
parent | 7b1eb2a669ad2a44dbe89d7d289d72870cbd74e7 (diff) | |
download | gitlab-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