Commit 6bde6a7e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'rails5-fix-project-import' into 'master'

[Rails5] Fix project's path check

Closes #7081

See merge request gitlab-org/gitlab-ee!6771
parents 57f8ecfc ea14bc31
......@@ -95,7 +95,13 @@ describe 'New project' do
click_button 'Create project'
created_project = Project.last
expect(current_path).to eq(project_path(created_project))
if Gitlab.rails5?
expect(current_path).to eq(project_import_path(created_project))
else
expect(current_path).to eq(project_path(created_project))
end
expect(created_project.project_feature).to be_issues_enabled
end
end
......@@ -113,7 +119,13 @@ describe 'New project' do
click_button 'Create project'
created_project = Project.last
expect(current_path).to eq(project_path(created_project))
if Gitlab.rails5?
expect(current_path).to eq(project_import_path(created_project))
else
expect(current_path).to eq(project_path(created_project))
end
expect(created_project.mirror).to eq(true)
expect(created_project.project_feature).not_to be_issues_enabled
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment