fix issues & pull requests specs
This commit is contained in:
parent
b8636d2f71
commit
ecf2426eb5
|
@ -129,12 +129,12 @@ end
|
||||||
|
|
||||||
shared_examples_for 'project with issues turned off' do
|
shared_examples_for 'project with issues turned off' do
|
||||||
it 'should not be able to perform index action' do
|
it 'should not be able to perform index action' do
|
||||||
get :index, :project_id => @project_with_turned_off_issues.id
|
get :index, :owner_name => @project_with_turned_off_issues.owner.uname, :project_name => @project_with_turned_off_issues.name
|
||||||
response.should redirect_to(forbidden_path)
|
response.should redirect_to(forbidden_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not be able to perform show action' do
|
it 'should not be able to perform show action' do
|
||||||
get :show, :project_id => @project_with_turned_off_issues.id, :id => @turned_of_issue.serial_id
|
get :show, :owner_name => @project_with_turned_off_issues.owner.uname, :project_name => @project_with_turned_off_issues.name, :id => @turned_of_issue.serial_id
|
||||||
response.should redirect_to(forbidden_path)
|
response.should redirect_to(forbidden_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -159,7 +159,7 @@ end
|
||||||
shared_examples_for 'pull request when project with issues turned off' do
|
shared_examples_for 'pull request when project with issues turned off' do
|
||||||
before { @project.update_attributes(:has_issues => false) }
|
before { @project.update_attributes(:has_issues => false) }
|
||||||
it 'should be able to perform index action' do
|
it 'should be able to perform index action' do
|
||||||
get :index, :project_id => @project.id
|
get :index, :owner_name => @project.owner.uname, :project_name => @project.name
|
||||||
response.should render_template(:index)
|
response.should render_template(:index)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue