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
Léo-Paul Géneau
gitlab-ce
Commits
1b368161
Commit
1b368161
authored
Jul 21, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `empty_project` where possible in spec/features/groups
parent
75319d97
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/groups/group_settings_spec.rb
spec/features/groups/group_settings_spec.rb
+3
-3
spec/features/groups/members/request_access_spec.rb
spec/features/groups/members/request_access_spec.rb
+1
-1
spec/features/groups/merge_requests_spec.rb
spec/features/groups/merge_requests_spec.rb
+1
-1
No files found.
spec/features/groups/group_settings_spec.rb
View file @
1b368161
...
...
@@ -49,7 +49,7 @@ feature 'Edit group settings' do
end
context
'with a project'
do
given!
(
:project
)
{
create
(
:
project
,
group:
group
,
path:
'project'
)
}
given!
(
:project
)
{
create
(
:
empty_project
,
group:
group
)
}
given
(
:old_project_full_path
)
{
"/
#{
group
.
path
}
/
#{
project
.
path
}
"
}
given
(
:new_project_full_path
)
{
"/
#{
new_group_path
}
/
#{
project
.
path
}
"
}
...
...
@@ -65,14 +65,14 @@ feature 'Edit group settings' do
update_path
(
new_group_path
)
visit
new_project_full_path
expect
(
current_path
).
to
eq
(
new_project_full_path
)
expect
(
find
(
'h1.
project-title'
)).
to
have_content
(
project
.
name
)
expect
(
find
(
'h1.
title'
)).
to
have_content
(
project
.
path
)
end
scenario
'the old project path redirects to the new path'
do
update_path
(
new_group_path
)
visit
old_project_full_path
expect
(
current_path
).
to
eq
(
new_project_full_path
)
expect
(
find
(
'h1.
project-title'
)).
to
have_content
(
project
.
name
)
expect
(
find
(
'h1.
title'
)).
to
have_content
(
project
.
path
)
end
end
end
...
...
spec/features/groups/members/request_access_spec.rb
View file @
1b368161
...
...
@@ -4,7 +4,7 @@ feature 'Groups > Members > Request access' do
let
(
:user
)
{
create
(
:user
)
}
let
(
:owner
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
,
:public
,
:access_requestable
)
}
let!
(
:project
)
{
create
(
:project
,
:private
,
namespace:
group
)
}
let!
(
:project
)
{
create
(
:
empty_
project
,
:private
,
namespace:
group
)
}
background
do
group
.
add_owner
(
owner
)
...
...
spec/features/groups/merge_requests_spec.rb
View file @
1b368161
...
...
@@ -7,7 +7,7 @@ feature 'Group merge requests page' do
include_examples
'project features apply to issuables'
,
MergeRequest
context
'archived issuable'
do
let
(
:project_archived
)
{
create
(
:project
,
:archived
,
:merge_requests_enabled
,
group:
group
)
}
let
(
:project_archived
)
{
create
(
:project
,
:archived
,
:merge_requests_enabled
,
:repository
,
group:
group
)
}
let
(
:issuable_archived
)
{
create
(
:merge_request
,
source_project:
project_archived
,
target_project:
project_archived
,
title:
'issuable of an archived project'
)
}
let
(
:access_level
)
{
ProjectFeature
::
ENABLED
}
let
(
:user
)
{
user_in_group
}
...
...
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