1 class ProjectIssueTracker < Spinach::FeatureSteps
2 include SharedAuthentication
6 step 'project "Shop" has issues enabled' do
7 @project = Project.find_by_name "Shop"
8 @project ||= create(:project_with_code, name: "Shop", namespace: @user.namespace)
9 @project.issues_enabled = true
12 step 'change the issue tracker to "GitLab"' do
13 select 'GitLab', from: 'project_issues_tracker'
16 step 'I the project should have "GitLab" as issue tracker' do
17 find_field('project_issues_tracker').value.should == 'gitlab'
20 step 'change the issue tracker to "Redmine"' do
21 select 'Redmine', from: 'project_issues_tracker'
24 step 'I the project should have "Redmine" as issue tracker' do
25 find_field('project_issues_tracker').value.should == 'redmine'
28 And 'I save project' do
29 click_button 'Save changes'