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
7ff9008f
Commit
7ff9008f
authored
Jul 23, 2017
by
Hiroyuki Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change double quotes to single quotes
parent
9b25bbc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/models/wiki_page_spec.rb
spec/models/wiki_page_spec.rb
+7
-7
No files found.
spec/models/wiki_page_spec.rb
View file @
7ff9008f
...
...
@@ -209,17 +209,17 @@ describe WikiPage, models: true do
end
end
context
"with same last commit sha"
do
it
"returns true"
do
context
'with same last commit sha'
do
it
'returns true'
do
last_commit_sha
=
@page
.
commit
.
sha
expect
(
@page
.
update
(
"more content"
,
:markdown
,
nil
,
last_commit_sha
)).
to
be_truthy
expect
(
@page
.
update
(
'more content'
,
:markdown
,
nil
,
last_commit_sha
)).
to
be_truthy
end
end
context
"with different last commit sha"
do
it
"raises exception"
do
last_commit_sha
=
"xxx"
expect
{
@page
.
update
(
"more content"
,
:markdown
,
nil
,
last_commit_sha
)
}.
to
raise_error
(
WikiPage
::
PageChangedError
)
context
'with different last commit sha'
do
it
'raises exception'
do
last_commit_sha
=
'xxx'
expect
{
@page
.
update
(
'more content'
,
:markdown
,
nil
,
last_commit_sha
)
}.
to
raise_error
(
WikiPage
::
PageChangedError
)
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