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
973066e7
Commit
973066e7
authored
Feb 07, 2014
by
robertd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for groups avatars check on user page
parent
b8e81e55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
features/profile/profile.feature
features/profile/profile.feature
+7
-0
features/steps/profile/profile.rb
features/steps/profile/profile.rb
+13
-0
No files found.
features/profile/profile.feature
View file @
973066e7
...
...
@@ -6,6 +6,13 @@ Feature: Profile
Given
I visit profile page
Then
I should see my profile info
Scenario
:
I
can see groups I belong to
Given
I have group with projects
When
I visit profile page
And
I click on my profile picture
Then
I should see my user page
And
I should see groups I belong to
Scenario
:
I
edit profile
Given
I visit profile page
Then
I change my profile info
...
...
features/steps/profile/profile.rb
View file @
973066e7
...
...
@@ -173,4 +173,17 @@ class Profile < Spinach::FeatureSteps
page
.
should
have_content
current_user
.
name
end
end
step
'I have group with projects'
do
@group
=
create
(
:group
)
@group
.
add_owner
(
current_user
)
@project
=
create
(
:project
,
namespace:
@group
)
@event
=
create
(
:closed_issue_event
,
project:
@project
)
@project
.
team
<<
[
current_user
,
:master
]
end
step
'I should see groups I belong to'
do
page
.
should
have_css
(
'.profile-groups-avatars'
,
visible:
true
)
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