Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2019-01-16 00:05:36 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2019-01-17 00:36:01 +0300
commit4724afa0059803b9ada7f1f888fb5595767ae7aa (patch)
treed4bb5ca244e647d2ff6afc0b58c2041077b59928 /spec/requests/lfs_locks_api_spec.rb
parentc46b8e968ba926745418738cb8855f0ca23b97cd (diff)
Actually set raise_on_unfiltered_parameters to true
Diffstat (limited to 'spec/requests/lfs_locks_api_spec.rb')
-rw-r--r--spec/requests/lfs_locks_api_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/requests/lfs_locks_api_spec.rb b/spec/requests/lfs_locks_api_spec.rb
index 28cb90e450e..c63fbcdd84e 100644
--- a/spec/requests/lfs_locks_api_spec.rb
+++ b/spec/requests/lfs_locks_api_spec.rb
@@ -132,6 +132,17 @@ describe 'Git LFS File Locking API' do
expect(json_response['lock'].keys).to match_array(%w(id path locked_at owner))
end
+
+ context 'when a maintainer uses force' do
+ let(:authorization) { authorize_user(maintainer) }
+
+ it 'deletes the lock' do
+ project.add_maintainer(maintainer)
+ post_lfs_json url, { force: true }, headers
+
+ expect(response).to have_gitlab_http_status(200)
+ end
+ end
end
end