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
Kazuhiko Shiozaki
gitlab-ce
Commits
5eb936dc
Commit
5eb936dc
authored
Jan 27, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved and refactored feature based on feedback. Also updated CHANGELOG
parent
eef9c9d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
CHANGELOG
CHANGELOG
+1
-0
features/explore/groups.feature
features/explore/groups.feature
+0
-5
features/groups.feature
features/groups.feature
+4
-0
features/steps/explore/groups.rb
features/steps/explore/groups.rb
+0
-4
features/steps/groups.rb
features/steps/groups.rb
+4
-0
No files found.
CHANGELOG
View file @
5eb936dc
...
@@ -8,6 +8,7 @@ v 8.5.0 (unreleased)
...
@@ -8,6 +8,7 @@ v 8.5.0 (unreleased)
- Fix diff comments loaded by AJAX to load comment with diff in discussion tab
- Fix diff comments loaded by AJAX to load comment with diff in discussion tab
- Whitelist raw "abbr" elements when parsing Markdown (Benedict Etzel)
- Whitelist raw "abbr" elements when parsing Markdown (Benedict Etzel)
- Don't vendor minified JS
- Don't vendor minified JS
- Display 404 error on group not found
v 8.4.1
v 8.4.1
- Apply security updates for Rails (4.2.5.1), rails-html-sanitizer (1.0.3),
- Apply security updates for Rails (4.2.5.1), rails-html-sanitizer (1.0.3),
...
...
features/explore/groups.feature
View file @
5eb936dc
...
@@ -3,11 +3,6 @@ Feature: Explore Groups
...
@@ -3,11 +3,6 @@ Feature: Explore Groups
Background
:
Background
:
Given
group
"TestGroup"
has private project
"Enterprise"
Given
group
"TestGroup"
has private project
"Enterprise"
Scenario
:
I
should not see a group if it does not exist
When
I sign in as a user
And
I visit group
"NonExistentGroup"
page
Then
page status code should be 404
Scenario
:
I
should see group with private and internal projects as user
Scenario
:
I
should see group with private and internal projects as user
Given
group
"TestGroup"
has internal project
"Internal"
Given
group
"TestGroup"
has internal project
"Internal"
When
I sign in as a user
When
I sign in as a user
...
...
features/groups.feature
View file @
5eb936dc
...
@@ -3,6 +3,10 @@ Feature: Groups
...
@@ -3,6 +3,10 @@ Feature: Groups
Given
I sign in as
"John Doe"
Given
I sign in as
"John Doe"
And
"John Doe"
is owner of group
"Owned"
And
"John Doe"
is owner of group
"Owned"
Scenario
:
I
should not see a group if it does not exist
When
I visit group
"NonExistentGroup"
page
Then
page status code should be 404
Scenario
:
I
should have back to group button
Scenario
:
I
should have back to group button
When
I visit group
"Owned"
page
When
I visit group
"Owned"
page
Then
I should see back to dashboard button
Then
I should see back to dashboard button
...
...
features/steps/explore/groups.rb
View file @
5eb936dc
...
@@ -26,10 +26,6 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
...
@@ -26,10 +26,6 @@ class Spinach::Features::ExploreGroups < Spinach::FeatureSteps
visit
group_path
(
Group
.
find_by
(
name:
"TestGroup"
))
visit
group_path
(
Group
.
find_by
(
name:
"TestGroup"
))
end
end
step
'I visit group "NonExistentGroup" page'
do
visit
group_path
(
-
1
)
end
step
'I visit group "TestGroup" issues page'
do
step
'I visit group "TestGroup" issues page'
do
visit
issues_group_path
(
Group
.
find_by
(
name:
"TestGroup"
))
visit
issues_group_path
(
Group
.
find_by
(
name:
"TestGroup"
))
end
end
...
...
features/steps/groups.rb
View file @
5eb936dc
...
@@ -120,6 +120,10 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
...
@@ -120,6 +120,10 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
expect
(
page
).
to
have_xpath
(
"//span[@class='label label-warning']"
,
text:
'archived'
)
expect
(
page
).
to
have_xpath
(
"//span[@class='label label-warning']"
,
text:
'archived'
)
end
end
step
'I visit group "NonExistentGroup" page'
do
visit
group_path
(
-
1
)
end
private
private
def
assigned_to_me
(
key
)
def
assigned_to_me
(
key
)
...
...
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