Commit 9fa70462 authored by Mark Chao's avatar Mark Chao

fix lock spec

parent 1c7ab76b
...@@ -80,12 +80,12 @@ describe Lfs::UnlockFileService do ...@@ -80,12 +80,12 @@ describe Lfs::UnlockFileService do
result = subject.execute result = subject.execute
expect(result[:status]).to eq(:error) expect(result[:status]).to eq(:error)
expect(result[:message]).to match(/You must have master access/) expect(result[:message]).to match(/You must have maintainer access/)
expect(result[:http_status]).to eq(403) expect(result[:http_status]).to eq(403)
end end
end end
context 'by a master user' do context 'by a maintainer user' do
let(:current_user) { master } let(:current_user) { master }
let(:params) do let(:params) do
{ id: lock.id, { id: lock.id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment