Commit 561634c7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Refactor group steps

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ea7467d2
...@@ -332,67 +332,22 @@ class Spinach::Features::Groups < Spinach::FeatureSteps ...@@ -332,67 +332,22 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
def group_milestone def group_milestone
group = owned_group group = owned_group
@project1 = create :project, %w(gitlabhq gitlab-ci cookbook-gitlab).each do |path|
group: group project = create :project, path: path, group: group
project2 = create :project, milestone = create :milestone, title: "Version 7.2", project: project
path: 'gitlab-ci', create :issue,
group: group project: project,
@project3 = create :project, assignee: current_user,
path: 'cookbook-gitlab', author: current_user,
group: group milestone: milestone
milestone1_project1 = create :milestone,
title: "Version 7.2", milestone = create :milestone, title: "GL-113", project: project
project: @project1 create :issue,
milestone1_project2 = create :milestone, project: project,
title: "Version 7.2", assignee: current_user,
project: project2 author: current_user,
create :milestone, milestone: milestone
title: "Version 7.2", end
project: @project3
milestone2_project1 = create :milestone,
title: "GL-113",
project: @project1
milestone2_project2 = create :milestone,
title: "GL-113",
project: project2
milestone2_project3 = create :milestone,
title: "GL-113",
project: @project3,
due_date: '2114-08-20',
description: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry'
@issue1 = create :issue,
project: @project1,
assignee: current_user,
author: current_user,
milestone: milestone2_project1
create :issue,
project: project2,
assignee: current_user,
author: current_user,
milestone: milestone1_project2
create :issue,
project: @project3,
assignee: current_user,
author: current_user,
milestone: milestone1_project1
create :merge_request,
source_project: @project1,
target_project: @project1,
assignee: current_user,
author: current_user,
milestone: milestone2_project1
create :merge_request,
source_project: project2,
target_project: project2,
assignee: current_user,
author: current_user,
milestone: milestone2_project2
@mr3 = create :merge_request,
source_project: @project3,
target_project: @project3,
assignee: current_user,
author: current_user,
milestone: milestone2_project3
end end
def group_members_list def group_members_list
......
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