diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-12-08 14:00:15 +0100 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-12-08 14:00:15 +0100 |
commit | 6245be083d985df3dd5daebb78ecf300bacff7b6 (patch) | |
tree | b64d60612a584f315451716bbbdd776bf1255ce0 | |
parent | ea5b462a1408f9fcd77dfd2961049057fc8ccad9 (diff) | |
download | gitlab-ce-6245be083d985df3dd5daebb78ecf300bacff7b6.tar.gz |
All for you rubocop.
-rw-r--r-- | spec/controllers/projects/raw_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/raw_controller_spec.rb b/spec/controllers/projects/raw_controller_spec.rb index 42c6d4f3f88..1caa476d37d 100644 --- a/spec/controllers/projects/raw_controller_spec.rb +++ b/spec/controllers/projects/raw_controller_spec.rb @@ -42,11 +42,11 @@ 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.render nothing: true } end it 'serves the file' do - expect(controller).to receive(:send_file).with("#{Gitlab.config.shared.path}/lfs-objects/91/ef/f75a492a3ed0dfcb544d7f31326bc4014c8551849c192fd1e48d4dd2c897", :filename => "lfs_object.iso", :disposition => 'attachment') + expect(controller).to receive(:send_file).with("#{Gitlab.config.shared.path}/lfs-objects/91/ef/f75a492a3ed0dfcb544d7f31326bc4014c8551849c192fd1e48d4dd2c897", filename: "lfs_object.iso", disposition: 'attachment') get(:show, namespace_id: public_project.namespace.to_param, project_id: public_project.to_param, |