diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-22 20:47:29 +0300 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-23 12:56:14 +0300 |
commit | 6ffdab63c5ad0b255b0ab605ff97fb93bee6465d (patch) | |
tree | f7ead28311a7630d777ab6d86fe4f91560a8590b /spec/controllers | |
parent | 0a42c7cbaae51466a67a4011859726c29bc24da4 (diff) |
render :nothing option is deprecated, Use head method to respond with empty response body.
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/concerns/controller_with_cross_project_access_check_spec.rb | 10 | ||||
-rw-r--r-- | spec/controllers/concerns/lfs_request_spec.rb | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/controllers/concerns/controller_with_cross_project_access_check_spec.rb b/spec/controllers/concerns/controller_with_cross_project_access_check_spec.rb index d20471ef603..3c9452cc42a 100644 --- a/spec/controllers/concerns/controller_with_cross_project_access_check_spec.rb +++ b/spec/controllers/concerns/controller_with_cross_project_access_check_spec.rb @@ -27,11 +27,11 @@ describe ControllerWithCrossProjectAccessCheck do if: -> { if_condition } def index - render nothing: true + head :ok end def show - render nothing: true + head :ok end def unless_condition @@ -88,15 +88,15 @@ describe ControllerWithCrossProjectAccessCheck do if: -> { if_condition } def index - render nothing: true + head :ok end def show - render nothing: true + head :ok end def edit - render nothing: true + head :ok end def unless_condition diff --git a/spec/controllers/concerns/lfs_request_spec.rb b/spec/controllers/concerns/lfs_request_spec.rb index 33b23db302a..76c878ec5d7 100644 --- a/spec/controllers/concerns/lfs_request_spec.rb +++ b/spec/controllers/concerns/lfs_request_spec.rb @@ -10,7 +10,7 @@ describe LfsRequest do def show storage_project - render nothing: true + head :ok end def project |