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
Boxiang Sun
gitlab-ce
Commits
bc7c6c68
Commit
bc7c6c68
authored
Dec 30, 2016
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed more tests
parent
1ee4f986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
features/project/active_tab.feature
features/project/active_tab.feature
+3
-3
features/steps/project/active_tab.rb
features/steps/project/active_tab.rb
+4
-4
spec/controllers/projects/settings/integrations_controller_spec.rb
...rollers/projects/settings/integrations_controller_spec.rb
+1
-1
No files found.
features/project/active_tab.feature
View file @
bc7c6c68
...
@@ -39,10 +39,10 @@ Feature: Project Active Tab
...
@@ -39,10 +39,10 @@ Feature: Project Active Tab
# Sub Tabs: Settings
# Sub Tabs: Settings
Scenario
:
On Project Settings/
Hook
s
Scenario
:
On Project Settings/
Integration
s
Given
I visit my project's settings page
Given
I visit my project's settings page
And
I click the
"
Hook
s"
tab
And
I click the
"
Integration
s"
tab
Then
the active sub nav should be
Hook
s
Then
the active sub nav should be
Integration
s
And
no other sub navs should be active
And
no other sub navs should be active
And
the active main tab should be Settings
And
the active main tab should be Settings
...
...
features/steps/project/active_tab.rb
View file @
bc7c6c68
...
@@ -27,8 +27,8 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -27,8 +27,8 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
end
end
end
end
step
'I click the "
Hook
s" tab'
do
step
'I click the "
Integration
s" tab'
do
click_link
(
'
Webhook
s'
)
click_link
(
'
Integration
s'
)
end
end
step
'I click the "Deploy Keys" tab'
do
step
'I click the "Deploy Keys" tab'
do
...
@@ -39,8 +39,8 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
...
@@ -39,8 +39,8 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_nav
(
'Members'
)
ensure_active_sub_nav
(
'Members'
)
end
end
step
'the active sub nav should be
Hook
s'
do
step
'the active sub nav should be
Integration
s'
do
ensure_active_sub_nav
(
'
Webhook
s'
)
ensure_active_sub_nav
(
'
Integration
s'
)
end
end
step
'the active sub nav should be Deploy Keys'
do
step
'the active sub nav should be Deploy Keys'
do
...
...
spec/controllers/projects/settings/integrations_controller_spec.rb
View file @
bc7c6c68
require
(
'spec_helper'
)
require
(
'spec_helper'
)
describe
Projects
::
Settings
::
IntegrationsController
do
describe
Projects
::
Settings
::
IntegrationsController
do
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
...
...
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