2012-09-10 17:35:03 +02:00
|
|
|
module SharedPaths
|
|
|
|
include Spinach::DSL
|
|
|
|
|
|
|
|
And 'I visit dashboard search page' do
|
|
|
|
visit search_path
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I visit dashboard merge requests page' do
|
|
|
|
visit dashboard_merge_requests_path
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I visit dashboard issues page' do
|
|
|
|
visit dashboard_issues_path
|
|
|
|
end
|
|
|
|
|
|
|
|
When 'I visit dashboard page' do
|
|
|
|
visit dashboard_path
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit profile page' do
|
|
|
|
visit profile_path
|
|
|
|
end
|
|
|
|
|
2012-09-14 18:13:25 +02:00
|
|
|
Given 'I visit profile account page' do
|
|
|
|
visit profile_account_path
|
2012-09-10 17:35:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit profile token page' do
|
|
|
|
visit profile_token_path
|
|
|
|
end
|
|
|
|
|
|
|
|
When 'I visit new project page' do
|
|
|
|
visit new_project_path
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I visit project "Shop" page' do
|
|
|
|
project = Project.find_by_name("Shop")
|
|
|
|
visit project_path(project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project branches page' do
|
|
|
|
visit branches_project_repository_path(@project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit compare refs page' do
|
|
|
|
visit compare_project_commits_path(@project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project commits page' do
|
|
|
|
visit project_commits_path(@project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project source page' do
|
2012-09-17 18:39:57 +02:00
|
|
|
visit project_tree_path(@project, @project.root_ref)
|
2012-09-10 17:35:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit blob file from repo' do
|
2012-09-17 18:39:57 +02:00
|
|
|
visit project_tree_path(@project, File.join(ValidCommit::ID, ValidCommit::BLOB_FILE_PATH))
|
2012-09-10 17:35:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project source page for "8470d70"' do
|
2012-09-17 18:39:57 +02:00
|
|
|
visit project_tree_path(@project, "8470d70")
|
2012-09-10 17:35:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project tags page' do
|
|
|
|
visit tags_project_repository_path(@project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project commit page' do
|
|
|
|
visit project_commit_path(@project, ValidCommit::ID)
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I visit project "Shop" issues page' do
|
|
|
|
visit project_issues_path(Project.find_by_name("Shop"))
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit issue page "Release 0.4"' do
|
|
|
|
issue = Issue.find_by_title("Release 0.4")
|
|
|
|
visit project_issue_path(issue.project, issue)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project "Shop" labels page' do
|
|
|
|
visit project_labels_path(Project.find_by_name("Shop"))
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit merge request page "Bug NS-04"' do
|
|
|
|
mr = MergeRequest.find_by_title("Bug NS-04")
|
|
|
|
visit project_merge_request_path(mr.project, mr)
|
|
|
|
end
|
|
|
|
|
|
|
|
And 'I visit project "Shop" merge requests page' do
|
|
|
|
visit project_merge_requests_path(Project.find_by_name("Shop"))
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project "Shop" milestones page' do
|
|
|
|
@project = Project.find_by_name("Shop")
|
|
|
|
visit project_milestones_path(@project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Then 'I visit project "Shop" team page' do
|
2012-09-16 15:21:20 +02:00
|
|
|
visit project_team_index_path(Project.find_by_name("Shop"))
|
2012-09-10 17:35:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Then 'I visit project "Shop" wall page' do
|
|
|
|
project = Project.find_by_name("Shop")
|
|
|
|
visit wall_project_path(project)
|
|
|
|
end
|
|
|
|
|
|
|
|
Given 'I visit project wiki page' do
|
|
|
|
visit project_wiki_path(@project, :index)
|
|
|
|
end
|
|
|
|
end
|