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
Jérome Perrin
gitlab-ce
Commits
2a966f1b
Commit
2a966f1b
authored
Sep 16, 2017
by
Vitaliy @blackst0ne Klachkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 'spec/features/profiles/*' specs
parent
20295b3d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
6 deletions
+39
-6
spec/features/profiles/user_visits_profile_account_page_spec.rb
...eatures/profiles/user_visits_profile_account_page_spec.rb
+1
-2
spec/features/profiles/user_visits_profile_authentication_log_spec.rb
...s/profiles/user_visits_profile_authentication_log_spec.rb
+15
-0
spec/features/profiles/user_visits_profile_preferences_page_spec.rb
...res/profiles/user_visits_profile_preferences_page_spec.rb
+1
-2
spec/features/profiles/user_visits_profile_spec.rb
spec/features/profiles/user_visits_profile_spec.rb
+15
-0
spec/features/profiles/user_visits_profile_ssh_keys_page_spec.rb
...atures/profiles/user_visits_profile_ssh_keys_page_spec.rb
+1
-2
spec/support/matchers/navigation_matcher.rb
spec/support/matchers/navigation_matcher.rb
+6
-0
No files found.
spec/features/profiles/user_visits_profile_account_page_spec.rb
View file @
2a966f1b
...
...
@@ -10,7 +10,6 @@ describe 'User visits the profile account page' do
end
it
'shows correct menu item'
do
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
'Account'
)
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
).
to
have_active_navigation
(
'Account'
)
end
end
spec/features/profiles/user_visits_profile_authentication_log_
page_
spec.rb
→
spec/features/profiles/user_visits_profile_authentication_log_spec.rb
View file @
2a966f1b
require
'spec_helper'
describe
'User visits the authentication log
page
'
do
describe
'User visits the authentication log'
do
let
(
:user
)
{
create
(
:user
)
}
before
do
...
...
@@ -10,7 +10,6 @@ describe 'User visits the authentication log page' do
end
it
'shows correct menu item'
do
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
'Authentication log'
)
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
).
to
have_active_navigation
(
'Authentication log'
)
end
end
spec/features/profiles/user_visits_profile_preferences_page_spec.rb
View file @
2a966f1b
...
...
@@ -10,8 +10,7 @@ describe 'User visits the profile preferences page' do
end
it
'shows correct menu item'
do
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
'Preferences'
)
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
).
to
have_active_navigation
(
'Preferences'
)
end
describe
'User changes their syntax highlighting theme'
,
:js
do
...
...
spec/features/profiles/user_visits_profile_
page_
spec.rb
→
spec/features/profiles/user_visits_profile_spec.rb
View file @
2a966f1b
require
'spec_helper'
describe
'User visits the
profile pag
e'
do
describe
'User visits the
ir profil
e'
do
let
(
:user
)
{
create
(
:user
)
}
before
do
...
...
@@ -10,7 +10,6 @@ describe 'User visits the profile page' do
end
it
'shows correct menu item'
do
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
'Profile'
)
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
).
to
have_active_navigation
(
'Profile'
)
end
end
spec/features/profiles/user_visits_profile_ssh_keys_page_spec.rb
View file @
2a966f1b
...
...
@@ -10,7 +10,6 @@ describe 'User visits the profile SSH keys page' do
end
it
'shows correct menu item'
do
expect
(
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
'SSH Keys'
)
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
).
to
have_active_navigation
(
'SSH Keys'
)
end
end
spec/support/matchers/navigation_matcher.rb
0 → 100644
View file @
2a966f1b
RSpec
::
Matchers
.
define
:have_active_navigation
do
|
expected
|
match
do
|
page
|
expect
(
page
).
to
have_selector
(
'.sidebar-top-level-items > li.active'
,
count:
1
)
expect
(
page
.
find
(
'.sidebar-top-level-items > li.active'
)).
to
have_content
(
expected
)
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