2011-12-05 09:29:17 +00:00
|
|
|
shared_examples_for 'be_able_to_perform_index#projects' do
|
2011-11-29 14:36:51 +00:00
|
|
|
it 'should be able to perform index action' do
|
|
|
|
get :index
|
|
|
|
response.should render_template(:index)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-05 09:29:17 +00:00
|
|
|
shared_examples_for 'be_able_to_perform_update#projects' do
|
2011-11-29 14:36:51 +00:00
|
|
|
it 'should be able to perform update action' do
|
2011-12-05 09:29:17 +00:00
|
|
|
put :update, {:id => @project.id}.merge(@update_params)
|
2011-11-29 14:36:51 +00:00
|
|
|
response.should redirect_to(project_path(@project))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
shared_examples_for 'be_able_to_fork_project' do
|
|
|
|
it 'should be able to fork project' do
|
|
|
|
post :fork, :id => @project.id
|
|
|
|
response.should redirect_to(project_path(Project.last))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-05 09:29:17 +00:00
|
|
|
shared_examples_for 'be_able_to_perform_build#projects' do
|
2011-11-29 14:36:51 +00:00
|
|
|
it 'should be able to perform build action' do
|
|
|
|
get :build, :id => @project.id
|
|
|
|
response.should render_template(:build)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-05 09:29:17 +00:00
|
|
|
shared_examples_for 'be_able_to_perform_process_build#projects' do
|
2011-11-29 14:36:51 +00:00
|
|
|
it 'should be able to perform process_build action' do
|
|
|
|
post :process_build, {:id => @project.id}.merge(@process_build_params)
|
|
|
|
response.should redirect_to(project_path(@project))
|
|
|
|
end
|
|
|
|
end
|