[#345] small refactoring
This commit is contained in:
parent
f2a3d163a3
commit
de7b3a3c13
|
@ -31,7 +31,7 @@ shared_examples_for 'api group user with admin rights' do
|
||||||
|
|
||||||
context 'api group user with update rights' do
|
context 'api group user with update rights' do
|
||||||
before do
|
before do
|
||||||
put :update, group: {description: 'new description'}, id: @group.id, format: :json
|
put :update, group: { description: 'new description' }, id: @group.id, format: :json
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should be able to perform update action' do
|
it 'should be able to perform update action' do
|
||||||
|
@ -120,7 +120,7 @@ shared_examples_for 'api group user without admin rights' do
|
||||||
|
|
||||||
context 'api group user without update rights' do
|
context 'api group user without update rights' do
|
||||||
before do
|
before do
|
||||||
put :update, group: {description: 'new description'}, id: @group.id, format: :json
|
put :update, group: { description: 'new description' }, id: @group.id, format: :json
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not be able to perform update action' do
|
it 'should not be able to perform update action' do
|
||||||
|
|
|
@ -63,7 +63,7 @@ shared_examples_for 'api repository user with writer rights' do
|
||||||
|
|
||||||
context 'api repository user with update rights' do
|
context 'api repository user with update rights' do
|
||||||
before do
|
before do
|
||||||
put :update, repository: {description: 'new description'}, id: @repository.id, format: :json
|
put :update, repository: { description: 'new description' }, id: @repository.id, format: :json
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should be able to perform update action' do
|
it 'should be able to perform update action' do
|
||||||
|
@ -189,7 +189,7 @@ shared_examples_for 'api repository user without writer rights' do
|
||||||
|
|
||||||
context 'api repository user without update rights' do
|
context 'api repository user without update rights' do
|
||||||
before do
|
before do
|
||||||
put :update, repository: {description: 'new description'}, id: @repository.id, format: :json
|
put :update, repository: { description: 'new description' }, id: @repository.id, format: :json
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not be able to perform update action' do
|
it 'should not be able to perform update action' do
|
||||||
|
|
Loading…
Reference in New Issue