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
01452c2d
Commit
01452c2d
authored
Feb 26, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add help text feature
parent
79a10b15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
features/admin/settings.feature
features/admin/settings.feature
+8
-0
features/steps/admin/settings.rb
features/steps/admin/settings.rb
+17
-0
No files found.
features/admin/settings.feature
View file @
01452c2d
...
@@ -7,3 +7,11 @@ Feature: Admin Settings
...
@@ -7,3 +7,11 @@ Feature: Admin Settings
Scenario
:
Change application settings
Scenario
:
Change application settings
When
I modify settings and save form
When
I modify settings and save form
Then
I should see application settings saved
Then
I should see application settings saved
Scenario
:
Help text
When
I set the help text
Then
I should see the help text
And
I go to help page
Then
I should see the help text
And
I logout
Then
I should see the help text
features/steps/admin/settings.rb
View file @
01452c2d
...
@@ -15,4 +15,21 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps
...
@@ -15,4 +15,21 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps
current_application_settings
.
home_page_url
.
should
==
'https://about.gitlab.com/'
current_application_settings
.
home_page_url
.
should
==
'https://about.gitlab.com/'
page
.
should
have_content
'Application settings saved successfully'
page
.
should
have_content
'Application settings saved successfully'
end
end
step
'I set the help text'
do
fill_in
'Help text'
,
with:
help_text
click_button
'Save'
end
step
'I should see the help text'
do
page
.
should
have_content
help_text
end
step
'I go to help page'
do
visit
'/help'
end
def
help_text
'For help related to GitLab contact Marc Smith at marc@smith.example or find him in office 42.'
end
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