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
Hide 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
...
@@ -4,7 +4,7 @@ class AdminActiveTab < Spinach::FeatureSteps
include
SharedActiveTab
include
SharedActiveTab
Then
'the active main tab should be Home'
do
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
'
Stats
'
)
ensure_active_main_tab
(
'
Home
'
)
end
end
Then
'the active main tab should be Projects'
do
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
...
@@ -4,7 +4,7 @@ class ProfileActiveTab < Spinach::FeatureSteps
include
SharedActiveTab
include
SharedActiveTab
Then
'the active main tab should be Home'
do
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
'
Profil
e'
)
ensure_active_main_tab
(
'
Hom
e'
)
end
end
Then
'the active main tab should be Account'
do
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
...
@@ -7,7 +7,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
# Main Tabs
# Main Tabs
Then
'the active main tab should be Home'
do
Then
'the active main tab should be Home'
do
ensure_active_main_tab
(
@project
.
name
)
ensure_active_main_tab
(
'Home'
)
end
end
Then
'the active main tab should be Files'
do
Then
'the active main tab should be Files'
do
...
...
features/steps/shared/active_tab.rb
View file @
2af323bb
...
@@ -2,7 +2,11 @@ module SharedActiveTab
...
@@ -2,7 +2,11 @@ module SharedActiveTab
include
Spinach
::
DSL
include
Spinach
::
DSL
def
ensure_active_main_tab
(
content
)
def
ensure_active_main_tab
(
content
)
page
.
find
(
'ul.main_menu li.active'
).
should
have_content
(
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
end
def
ensure_active_sub_tab
(
content
)
def
ensure_active_sub_tab
(
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