summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2016-03-16 03:16:25 +0200
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2016-03-16 03:16:25 +0200
commit6a0ea605e8b48deacbb4e93f7bb1d9b9abd2f7f4 (patch)
treeeee4f5ab93815b73748b83f6bc410cd185dd7540 /spec
parent64d0dd1807c75be21a8f5bfe3a74b9230b5b8979 (diff)
downloadgitlab-ce-6a0ea605e8b48deacbb4e93f7bb1d9b9abd2f7f4.tar.gz
Change deprecated usage of rendering without response body
`render nothing: true` has been deprecated. For more information see [pr](https://github.com/rails/rails/pull/20336)
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/projects/raw_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects/raw_controller_spec.rb b/spec/controllers/projects/raw_controller_spec.rb
index 1caa476d37d..fb29274c687 100644
--- a/spec/controllers/projects/raw_controller_spec.rb
+++ b/spec/controllers/projects/raw_controller_spec.rb
@@ -42,7 +42,7 @@ describe Projects::RawController do
before do
public_project.lfs_objects << lfs_object
allow_any_instance_of(LfsObjectUploader).to receive(:exists?).and_return(true)
- allow(controller).to receive(:send_file) { controller.render nothing: true }
+ allow(controller).to receive(:send_file) { controller.head :ok }
end
it 'serves the file' do