2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-12-12 07:51:39 +00:00
|
|
|
shared_examples_for 'not destroy personal repository' do
|
2011-11-30 09:53:53 +00:00
|
|
|
it 'should not be able to destroy personal repository' do
|
|
|
|
delete :destroy, :id => @personal_repository.id
|
|
|
|
response.should redirect_to(forbidden_path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-15 09:38:40 +00:00
|
|
|
shared_examples_for 'destroy personal repository' do
|
|
|
|
it 'should be able to perform destroy action' do
|
|
|
|
delete :destroy, :id => @repository.id
|
|
|
|
response.should redirect_to(platform_path(@repository.platform.id))
|
2011-11-30 09:53:53 +00:00
|
|
|
end
|
|
|
|
end
|