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
b390ee1a
Commit
b390ee1a
authored
Sep 24, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
4d543541
b794fdbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
multiselect_blob.rb
features/steps/project/multiselect_blob.rb
+3
-3
wiki.rb
features/steps/project/wiki.rb
+4
-8
No files found.
features/steps/project/multiselect_blob.rb
View file @
b390ee1a
...
@@ -12,7 +12,7 @@ class Spinach::Features::ProjectMultiselectBlob < Spinach::FeatureSteps
...
@@ -12,7 +12,7 @@ class Spinach::Features::ProjectMultiselectBlob < Spinach::FeatureSteps
step
"I shift-click line
#{
line_number
}
in file"
do
step
"I shift-click line
#{
line_number
}
in file"
do
script
=
"$('#L
#{
line_number
}
').trigger($.Event('click', { shiftKey: true }));"
script
=
"$('#L
#{
line_number
}
').trigger($.Event('click', { shiftKey: true }));"
page
.
evalua
te_script
(
script
)
execu
te_script
(
script
)
end
end
end
end
end
end
...
@@ -45,11 +45,11 @@ class Spinach::Features::ProjectMultiselectBlob < Spinach::FeatureSteps
...
@@ -45,11 +45,11 @@ class Spinach::Features::ProjectMultiselectBlob < Spinach::FeatureSteps
check_state_steps
*
Array
(
1
..
5
),
Array
(
1
..
2
),
Array
(
1
..
3
),
Array
(
1
..
4
),
Array
(
1
..
5
),
Array
(
3
..
5
)
check_state_steps
*
Array
(
1
..
5
),
Array
(
1
..
2
),
Array
(
1
..
3
),
Array
(
1
..
4
),
Array
(
1
..
5
),
Array
(
3
..
5
)
step
'I go back in history'
do
step
'I go back in history'
do
page
.
evaluate_script
(
"window.history.back()"
)
go_back
end
end
step
'I go forward in history'
do
step
'I go forward in history'
do
page
.
evaluate_script
(
"window.history.forward()"
)
go_forward
end
end
step
'I click on ".gitignore" file in repo'
do
step
'I click on ".gitignore" file in repo'
do
...
...
features/steps/project/wiki.rb
View file @
b390ee1a
...
@@ -11,8 +11,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -11,8 +11,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should be redirected back to the Edit Home Wiki page'
do
step
'I should be redirected back to the Edit Home Wiki page'
do
url
=
URI
.
parse
(
current_url
)
current_path
.
should
==
project_wiki_path
(
project
,
:home
)
url
.
path
.
should
==
project_wiki_path
(
project
,
:home
)
end
end
step
'I create the Wiki Home page'
do
step
'I create the Wiki Home page'
do
...
@@ -51,8 +50,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -51,8 +50,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should be redirected back to that Wiki page'
do
step
'I should be redirected back to that Wiki page'
do
url
=
URI
.
parse
(
current_url
)
current_path
.
should
==
project_wiki_path
(
project
,
@page
)
url
.
path
.
should
==
project_wiki_path
(
project
,
@page
)
end
end
step
'That page has two revisions'
do
step
'That page has two revisions'
do
...
@@ -104,8 +102,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -104,8 +102,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should see the image from wiki repo'
do
step
'I should see the image from wiki repo'
do
url
=
URI
.
parse
(
current_url
)
current_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
::
Wiki
.
any_instance
.
unstub
(
:file
)
Gollum
::
File
.
any_instance
.
unstub
(
:mime_type
)
Gollum
::
File
.
any_instance
.
unstub
(
:mime_type
)
...
@@ -121,8 +118,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -121,8 +118,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should see the new wiki page form'
do
step
'I should see the new wiki page form'
do
url
=
URI
.
parse
(
current_url
)
current_path
.
should
match
(
'wikis/image.jpg'
)
url
.
path
.
should
match
(
"wikis/image.jpg"
)
page
.
should
have_content
(
'New Wiki Page'
)
page
.
should
have_content
(
'New Wiki Page'
)
page
.
should
have_content
(
'Editing - image.jpg'
)
page
.
should
have_content
(
'Editing - image.jpg'
)
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