Skip to content
Snippets Groups Projects
Commit 3cf814ff authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

remove duplicate finder in features/steps/path

parent c3659ef2
No related branches found
No related tags found
No related merge requests found
Loading
@@ -173,12 +173,10 @@ module SharedPaths
Loading
@@ -173,12 +173,10 @@ module SharedPaths
# ---------------------------------------- # ----------------------------------------
   
And 'I visit project "Shop" page' do And 'I visit project "Shop" page' do
project = Project.find_by_name("Shop")
visit project_path(project) visit project_path(project)
end end
   
When 'I visit edit project "Shop" page' do When 'I visit edit project "Shop" page' do
project = Project.find_by_name("Shop")
visit edit_project_path(project) visit edit_project_path(project)
end end
   
Loading
@@ -219,7 +217,7 @@ module SharedPaths
Loading
@@ -219,7 +217,7 @@ module SharedPaths
end end
   
And 'I visit project "Shop" issues page' do And 'I visit project "Shop" issues page' do
visit project_issues_path(Project.find_by_name("Shop")) visit project_issues_path(project)
end end
   
Given 'I visit issue page "Release 0.4"' do Given 'I visit issue page "Release 0.4"' do
Loading
@@ -228,7 +226,7 @@ module SharedPaths
Loading
@@ -228,7 +226,7 @@ module SharedPaths
end end
   
Given 'I visit project "Shop" labels page' do Given 'I visit project "Shop" labels page' do
visit project_labels_path(Project.find_by_name("Shop")) visit project_labels_path(project)
end end
   
Given 'I visit merge request page "Bug NS-04"' do Given 'I visit merge request page "Bug NS-04"' do
Loading
@@ -242,20 +240,18 @@ module SharedPaths
Loading
@@ -242,20 +240,18 @@ module SharedPaths
end end
   
And 'I visit project "Shop" merge requests page' do And 'I visit project "Shop" merge requests page' do
visit project_merge_requests_path(Project.find_by_name("Shop")) visit project_merge_requests_path(project)
end end
   
Given 'I visit project "Shop" milestones page' do Given 'I visit project "Shop" milestones page' do
@project = Project.find_by_name("Shop") visit project_milestones_path(project)
visit project_milestones_path(@project)
end end
   
Then 'I visit project "Shop" team page' do Then 'I visit project "Shop" team page' do
visit project_team_index_path(Project.find_by_name("Shop")) visit project_team_index_path(project)
end end
   
Then 'I visit project "Shop" wall page' do Then 'I visit project "Shop" wall page' do
project = Project.find_by_name("Shop")
visit wall_project_path(project) visit wall_project_path(project)
end end
   
Loading
@@ -266,4 +262,8 @@ module SharedPaths
Loading
@@ -266,4 +262,8 @@ module SharedPaths
def root_ref def root_ref
@project.repository.root_ref @project.repository.root_ref
end end
def project
project = Project.find_by_name!("Shop")
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment