Lines Matching refs:destroy
33 %i(edit update destroy write).each do |perm|
49 %i(edit update destroy write).each do |perm|
68 it 'be allowed: edit, update, destroy, permissions, write' do
69 %i(show edit update destroy permissions).each do |perm|
74 it 'not be allowed on other: edit, update, destroy, permissions' do
75 %i(edit update destroy permissions).each do |perm|
90 it 'not be allowed: edit, update, destroy, permissions' do
91 %i(edit update destroy permissions).each do |perm|
242 it 'be allowed: edit, update, destroy' do
243 %i(edit update destroy).each do |perm|
256 it 'not be allowed: edit, update, destroy (without admin on team)' do
257 %i(edit update destroy).each do |perm|
262 it 'not be allowed: edit, update, destroy (without being on team)' do
263 %i(edit update destroy).each do |perm|
276 it 'destroy his own comment' do
277 should be_able_to(:destroy, comment)
280 it 'not be allowed to destroy others comment' do
281 should_not be_able_to(:destroy, create(:comment))
288 it 'destroy others comment' do
289 should be_able_to(:destroy, comment)
300 it 'destroy others comments for his repository' do
301 should be_able_to(:destroy, comment)
311 it 'not destroy others comments for his repository' do
312 should_not be_able_to(:destroy, comment)