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
02ae038c
Commit
02ae038c
authored
May 07, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_test' into 'master'
Fixes failing test
parents
e026491d
99e0d0dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
features/project/wiki.feature
features/project/wiki.feature
+6
-6
features/steps/project/wiki.rb
features/steps/project/wiki.rb
+2
-0
No files found.
features/project/wiki.feature
View file @
02ae038c
...
@@ -46,6 +46,12 @@ Feature: Project Wiki
...
@@ -46,6 +46,12 @@ Feature: Project Wiki
And
I click on the
"Pages"
button
And
I click on the
"Pages"
button
Then
I should see the existing page in the pages list
Then
I should see the existing page in the pages list
Scenario
:
File exists in wiki repo
Given
I have an existing Wiki page with images linked on page
And
I browse to wiki page with images
And
I click on existing image link
Then
I should see the image from wiki repo
Scenario
:
Image in wiki repo shown on the page
Scenario
:
Image in wiki repo shown on the page
Given
I have an existing Wiki page with images linked on page
Given
I have an existing Wiki page with images linked on page
And
I browse to wiki page with images
And
I browse to wiki page with images
...
@@ -56,9 +62,3 @@ Feature: Project Wiki
...
@@ -56,9 +62,3 @@ Feature: Project Wiki
And
I browse to wiki page with images
And
I browse to wiki page with images
And
I click on image link
And
I click on image link
Then
I should see the new wiki page form
Then
I should see the new wiki page form
Scenario
:
File exists in wiki repo
Given
I have an existing Wiki page with images linked on page
And
I browse to wiki page with images
And
I click on existing image link
Then
I should see the image from wiki repo
features/steps/project/wiki.rb
View file @
02ae038c
...
@@ -107,6 +107,8 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -107,6 +107,8 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
url
=
URI
.
parse
(
current_url
)
url
=
URI
.
parse
(
current_url
)
url
.
path
.
should
match
(
"wikis/image.jpg"
)
url
.
path
.
should
match
(
"wikis/image.jpg"
)
page
.
should_not
have_xpath
(
'/html'
)
# Page should render the image which means there is no html involved
page
.
should_not
have_xpath
(
'/html'
)
# Page should render the image which means there is no html involved
Gollum
::
Wiki
.
any_instance
.
unstub
(
:file
)
Gollum
::
File
.
any_instance
.
unstub
(
:mime_type
)
end
end
Then
'Image should be shown on the page'
do
Then
'Image should be shown on the page'
do
...
...
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