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
2af323bb
Commit
2af323bb
authored
Jan 31, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix active tabs tests
parent
130f60d5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
features/steps/admin/admin_active_tab.rb
features/steps/admin/admin_active_tab.rb
+1
-1
features/steps/profile/profile_active_tab.rb
features/steps/profile/profile_active_tab.rb
+1
-1
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+1
-1
features/steps/shared/active_tab.rb
features/steps/shared/active_tab.rb
+5
-1
No files found.
features/steps/admin/admin_active_tab.rb
View file @
2af323bb
...
...
@@ -4,7 +4,7 @@ class AdminActiveTab < Spinach::FeatureSteps
include
SharedActiveTab
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
'
Stats
'
)
ensure_active_main_tab
(
'
Home
'
)
end
Then
'the active main tab should be Projects'
do
...
...
features/steps/profile/profile_active_tab.rb
View file @
2af323bb
...
...
@@ -4,7 +4,7 @@ class ProfileActiveTab < Spinach::FeatureSteps
include
SharedActiveTab
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
'
Profil
e'
)
ensure_active_main_tab
(
'
Hom
e'
)
end
Then
'the active main tab should be Account'
do
...
...
features/steps/project/project_active_tab.rb
View file @
2af323bb
...
...
@@ -7,7 +7,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
# Main Tabs
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
@project
.
name
)
ensure_active_main_tab
(
'Home'
)
end
Then
'the active main tab should be Files'
do
...
...
features/steps/shared/active_tab.rb
View file @
2af323bb
...
...
@@ -2,8 +2,12 @@ module SharedActiveTab
include
Spinach
::
DSL
def
ensure_active_main_tab
(
content
)
if
content
==
"Home"
page
.
find
(
'ul.main_menu li.active'
).
should
have_css
(
'i.icon-home'
)
else
page
.
find
(
'ul.main_menu li.active'
).
should
have_content
(
content
)
end
end
def
ensure_active_sub_tab
(
content
)
page
.
find
(
'div.content ul.nav-tabs li.active'
).
should
have_content
(
content
)
...
...
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