BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c3cbee10
Commit
c3cbee10
authored
Jul 22, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a spec for #20079.
The issue was fixed in
2ba5e625
. The spec is going in separately just so the fix could go in as soon as possible.
parent
c9a56dac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
wiki.feature
features/project/wiki.feature
+6
-0
wiki.rb
features/steps/project/wiki.rb
+10
-0
No files found.
features/project/wiki.feature
View file @
c3cbee10
...
...
@@ -8,6 +8,12 @@ Feature: Project Wiki
Given
I create the Wiki Home page
Then
I should see the newly created wiki page
Scenario
:
Add new page with errors
Given
I create the Wiki Home page with no content
Then
I should see a
"Content can't be blank"
error message
When
I create the Wiki Home page
Then
I should see the newly created wiki page
Scenario
:
Pressing Cancel while editing a brand new Wiki
Given
I click on the Cancel button
Then
I should be redirected back to the Edit Home Wiki page
...
...
features/steps/project/wiki.rb
View file @
c3cbee10
...
...
@@ -19,6 +19,11 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
click_on
"Create page"
end
step
'I create the Wiki Home page with no content'
do
fill_in
"wiki_content"
,
with:
''
click_on
"Create page"
end
step
'I should see the newly created wiki page'
do
expect
(
page
).
to
have_content
"Home"
expect
(
page
).
to
have_content
"link test"
...
...
@@ -173,6 +178,11 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
find
(
'a[href*="?version_id"]'
)
end
step
'I should see a "Content can\'t be blank" error message'
do
expect
(
page
).
to
have_content
(
'The form contains the following error:'
)
expect
(
page
).
to
have_content
(
'Content can\'t be blank'
)
end
def
wiki
@project_wiki
=
ProjectWiki
.
new
(
project
,
current_user
)
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