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
5f369389
Commit
5f369389
authored
Mar 17, 2022
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small change to improve readibility wiki specs
parent
ecd79f91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/support/shared_examples/lib/wikis_api_examples.rb
spec/support/shared_examples/lib/wikis_api_examples.rb
+4
-2
No files found.
spec/support/shared_examples/lib/wikis_api_examples.rb
View file @
5f369389
...
...
@@ -80,6 +80,8 @@ RSpec.shared_examples_for 'wikis API returns wiki page' do
context
'when wiki page has versions'
do
let
(
:new_content
)
{
'New content'
}
let
(
:old_content
)
{
page
.
content
}
let
(
:old_version_id
)
{
page
.
version
.
id
}
before
do
wiki
.
update_page
(
page
.
page
,
content:
new_content
,
message:
'updated page'
)
...
...
@@ -96,10 +98,10 @@ RSpec.shared_examples_for 'wikis API returns wiki page' do
end
context
'when version param is set'
do
let
(
:params
)
{
{
version:
page
.
version
.
id
}
}
let
(
:params
)
{
{
version:
old_version_
id
}
}
it
'retrieves the specific page version'
do
expect
(
json_response
[
'content'
]).
to
eq
(
page
.
content
)
expect
(
json_response
[
'content'
]).
to
eq
(
old_
content
)
end
context
'when version param is not valid or inexistent'
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