Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
44a36b89
Commit
44a36b89
authored
Aug 02, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `:empty_project` where possible in features/steps
parent
d4b2c53d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
features/steps/explore/groups.rb
features/steps/explore/groups.rb
+1
-1
features/steps/shared/project.rb
features/steps/shared/project.rb
+1
-1
No files found.
features/steps/explore/groups.rb
View file @
44a36b89
...
...
@@ -66,7 +66,7 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
def
group_has_project
(
groupname
,
projectname
,
visibility_level
)
group
=
Group
.
find_by
(
name:
groupname
)
||
create
(
:group
,
name:
groupname
)
project
=
create
(
:project
,
project
=
create
(
:
empty_
project
,
namespace:
group
,
name:
projectname
,
path:
"
#{
groupname
}
-
#{
projectname
}
"
,
...
...
features/steps/shared/project.rb
View file @
44a36b89
...
...
@@ -9,7 +9,7 @@ module SharedProject
step
"I own a project in some group namespace"
do
@group
=
create
(
:group
,
name:
'some group'
)
@project
=
create
(
:project
,
namespace:
@group
)
@project
=
create
(
:
empty_
project
,
namespace:
@group
)
@project
.
team
<<
[
@user
,
:master
]
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment