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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
cf39d282
Commit
cf39d282
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
88958e5a
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 @
cf39d282
...
@@ -66,7 +66,7 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
...
@@ -66,7 +66,7 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
def
group_has_project
(
groupname
,
projectname
,
visibility_level
)
def
group_has_project
(
groupname
,
projectname
,
visibility_level
)
group
=
Group
.
find_by
(
name:
groupname
)
||
create
(
:group
,
name:
groupname
)
group
=
Group
.
find_by
(
name:
groupname
)
||
create
(
:group
,
name:
groupname
)
project
=
create
(
:project
,
project
=
create
(
:
empty_
project
,
namespace:
group
,
namespace:
group
,
name:
projectname
,
name:
projectname
,
path:
"
#{
groupname
}
-
#{
projectname
}
"
,
path:
"
#{
groupname
}
-
#{
projectname
}
"
,
...
...
features/steps/shared/project.rb
View file @
cf39d282
...
@@ -9,7 +9,7 @@ module SharedProject
...
@@ -9,7 +9,7 @@ module SharedProject
step
"I own a project in some group namespace"
do
step
"I own a project in some group namespace"
do
@group
=
create
(
:group
,
name:
'some group'
)
@group
=
create
(
:group
,
name:
'some group'
)
@project
=
create
(
:project
,
namespace:
@group
)
@project
=
create
(
:
empty_
project
,
namespace:
@group
)
@project
.
team
<<
[
@user
,
:master
]
@project
.
team
<<
[
@user
,
:master
]
end
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