diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-12 12:07:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-12 12:07:33 +0000 |
commit | 784fae4b9d7e92350075df2a43d06893080ed1e6 (patch) | |
tree | c7a6fd444acd6897622b233b250a34fd176f01da /spec/services/lfs/unlock_file_service_spec.rb | |
parent | fc53ce8e6ca67bf217470179a1ea6cf139bcffad (diff) | |
download | gitlab-ce-784fae4b9d7e92350075df2a43d06893080ed1e6.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/lfs/unlock_file_service_spec.rb')
-rw-r--r-- | spec/services/lfs/unlock_file_service_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/services/lfs/unlock_file_service_spec.rb b/spec/services/lfs/unlock_file_service_spec.rb index 8e36617c0d6..1334b074e84 100644 --- a/spec/services/lfs/unlock_file_service_spec.rb +++ b/spec/services/lfs/unlock_file_service_spec.rb @@ -18,7 +18,7 @@ describe Lfs::UnlockFileService do expect(result[:status]).to eq(:error) expect(result[:http_status]).to eq(403) - expect(result[:message]).to eq('You have no permissions') + expect(result[:message]).to eq(_('You have no permissions')) end end @@ -29,6 +29,7 @@ describe Lfs::UnlockFileService do context 'when lock does not exists' do let(:params) { { id: 123 } } + it "doesn't succeed" do result = subject.execute @@ -82,7 +83,7 @@ describe Lfs::UnlockFileService do result = subject.execute expect(result[:status]).to eq(:error) - expect(result[:message]).to match(/You must have maintainer access/) + expect(result[:message]).to eq(_('You must have maintainer access to force delete a lock')) expect(result[:http_status]).to eq(403) end end |