diff options
Diffstat (limited to 'spec/requests/lfs_locks_api_spec.rb')
-rw-r--r-- | spec/requests/lfs_locks_api_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/lfs_locks_api_spec.rb b/spec/requests/lfs_locks_api_spec.rb index 363a16f014b..a1a713308e0 100644 --- a/spec/requests/lfs_locks_api_spec.rb +++ b/spec/requests/lfs_locks_api_spec.rb @@ -67,7 +67,7 @@ RSpec.describe 'Git LFS File Locking API', feature_category: :source_code_manage expect(response).to have_gitlab_http_status(:conflict) - expect(json_response.keys).to match_array(%w(lock message documentation_url)) + expect(json_response.keys).to match_array(%w[lock message documentation_url]) expect(json_response['message']).to match(/already locked/) end @@ -84,7 +84,7 @@ RSpec.describe 'Git LFS File Locking API', feature_category: :source_code_manage expect(response).to have_gitlab_http_status(:created) - expect(json_response['lock'].keys).to match_array(%w(id path locked_at owner)) + expect(json_response['lock'].keys).to match_array(%w[id path locked_at owner]) end end end @@ -103,7 +103,7 @@ RSpec.describe 'Git LFS File Locking API', feature_category: :source_code_manage expect(response).to have_gitlab_http_status(:ok) expect(json_response['locks'].size).to eq(2) - expect(json_response['locks'].first.keys).to match_array(%w(id path locked_at owner)) + expect(json_response['locks'].first.keys).to match_array(%w[id path locked_at owner]) end end @@ -143,7 +143,7 @@ RSpec.describe 'Git LFS File Locking API', feature_category: :source_code_manage it 'returns the deleted lock' do post_lfs_json url, nil, headers - expect(json_response['lock'].keys).to match_array(%w(id path locked_at owner)) + expect(json_response['lock'].keys).to match_array(%w[id path locked_at owner]) end context 'when a maintainer uses force' do |