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
bd8943f5
Commit
bd8943f5
authored
Oct 11, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spinach features
And several other failures
parent
2c6c2ed6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
5 deletions
+13
-5
app/controllers/concerns/group_tree.rb
app/controllers/concerns/group_tree.rb
+1
-1
app/views/shared/groups/_dropdown.html.haml
app/views/shared/groups/_dropdown.html.haml
+0
-1
features/explore/groups.feature
features/explore/groups.feature
+12
-0
spec/controllers/groups_controller_spec.rb
spec/controllers/groups_controller_spec.rb
+0
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+0
-1
spec/serializers/group_child_serializer_spec.rb
spec/serializers/group_child_serializer_spec.rb
+0
-1
No files found.
app/controllers/concerns/group_tree.rb
View file @
bd8943f5
...
...
@@ -7,7 +7,7 @@ module GroupTree
# Only show root groups if no parent-id is given
groups
.
where
(
parent_id:
params
[
:parent_id
])
end
@groups
=
@groups
.
with_selects_for_list
@groups
=
@groups
.
with_selects_for_list
(
params
[
:archived
])
.
sort
(
@sort
=
params
[
:sort
])
.
page
(
params
[
:page
])
...
...
app/views/shared/groups/_dropdown.html.haml
View file @
bd8943f5
...
...
@@ -6,7 +6,6 @@
-
else
-
default_sort_by
=
sort_value_recently_created
.dropdown.inline.js-group-filter-dropdown-wrap.append-right-10
%button
.dropdown-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.dropdown-label
...
...
features/explore/groups.feature
View file @
bd8943f5
...
...
@@ -3,6 +3,7 @@ Feature: Explore Groups
Background
:
Given
group
"TestGroup"
has private project
"Enterprise"
@javascript
Scenario
:
I
should see group with private and internal projects as user
Given
group
"TestGroup"
has internal project
"Internal"
When
I sign in as a user
...
...
@@ -10,6 +11,7 @@ Feature: Explore Groups
Then
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group issues for internal project as user
Given
group
"TestGroup"
has internal project
"Internal"
When
I sign in as a user
...
...
@@ -17,6 +19,7 @@ Feature: Explore Groups
Then
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group merge requests for internal project as user
Given
group
"TestGroup"
has internal project
"Internal"
When
I sign in as a user
...
...
@@ -24,6 +27,7 @@ Feature: Explore Groups
Then
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group with private, internal and public projects as visitor
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -32,6 +36,7 @@ Feature: Explore Groups
And
I should not see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group issues for public project as visitor
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -40,6 +45,7 @@ Feature: Explore Groups
And
I should not see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group merge requests for public project as visitor
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -48,6 +54,7 @@ Feature: Explore Groups
And
I should not see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group with private, internal and public projects as user
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -57,6 +64,7 @@ Feature: Explore Groups
And
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group issues for internal and public projects as user
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -66,6 +74,7 @@ Feature: Explore Groups
And
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group merge requests for internal and public projects as user
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has public project
"Community"
...
...
@@ -75,17 +84,20 @@ Feature: Explore Groups
And
I should see project
"Internal"
items
And
I should not see project
"Enterprise"
items
@javascript
Scenario
:
I
should see group with public project in public groups area
Given
group
"TestGroup"
has public project
"Community"
When
I visit the public groups area
Then
I should see group
"TestGroup"
@javascript
Scenario
:
I
should see group with public project in public groups area as user
Given
group
"TestGroup"
has public project
"Community"
When
I sign in as a user
And
I visit the public groups area
Then
I should see group
"TestGroup"
@javascript
Scenario
:
I
should see group with internal project in public groups area as user
Given
group
"TestGroup"
has internal project
"Internal"
When
I sign in as a user
...
...
spec/controllers/groups_controller_spec.rb
View file @
bd8943f5
...
...
@@ -418,7 +418,6 @@ describe GroupsController do
end
end
end
end
describe
'GET #issues'
do
...
...
spec/models/project_spec.rb
View file @
bd8943f5
...
...
@@ -2199,7 +2199,6 @@ describe Project do
it
{
expect
(
project
.
parent_id
).
to
eq
(
project
.
namespace_id
)
}
end
describe
'#parent_changed?'
do
let
(
:project
)
{
create
(
:project
)
}
...
...
spec/serializers/group_child_serializer_spec.rb
View file @
bd8943f5
...
...
@@ -39,7 +39,6 @@ describe GroupChildSerializer do
subgroup1
=
create
(
:group
,
parent:
parent
)
subsub_group1
=
create
(
:group
,
parent:
subgroup1
)
subgroup2
=
create
(
:group
,
parent:
parent
)
subsub_group2
=
create
(
:group
,
parent:
subgroup2
)
json
=
serializer
.
represent
([
subgroup1
,
subsub_group1
,
subgroup1
,
subgroup2
])
subgroup1_json
=
json
.
first
...
...
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