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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3d242a31
Commit
3d242a31
authored
Nov 28, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GitLab Markdown helper spec
parent
f614ae8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+4
-2
No files found.
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
3d242a31
...
...
@@ -329,9 +329,11 @@ describe GitlabMarkdownHelper do
end
it
"should leave code blocks untouched"
do
markdown
(
"
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
"
).
should
==
"<div class=
\"
highlight
\"
><pre><span class=
\"
n
\"
>some</span> <span class=
\"
n
\"
>code</span> <span class=
\"
n
\"
>from</span> $
#{
snippet
.
id
}
\n
<span class=
\"
n
\"
>here</span> <span class=
\"
n
\"
>too</span>
\n
</pre></div>"
helper
.
stub
(
:user_color_scheme_class
).
and_return
(
:white
)
markdown
(
"
\n
```
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
```
\n
"
).
should
==
"<div class=
\"
highlight
\"
><pre><span class=
\"
n
\"
>some</span> <span class=
\"
n
\"
>code</span> <span class=
\"
n
\"
>from</span> $
#{
snippet
.
id
}
\n
<span class=
\"
n
\"
>here</span> <span class=
\"
n
\"
>too</span>
\n
</pre></div>"
helper
.
markdown
(
"
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
"
).
should
==
"<div class=
\"
white
\"
><div class=
\"
highlight
\"
><pre><span class=
\"
n
\"
>some</span> <span class=
\"
n
\"
>code</span> <span class=
\"
n
\"
>from</span> $
#{
snippet
.
id
}
\n
<span class=
\"
n
\"
>here</span> <span class=
\"
n
\"
>too</span>
\n
</pre></div></div>"
helper
.
markdown
(
"
\n
```
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
```
\n
"
).
should
==
"<div class=
\"
white
\"
><div class=
\"
highlight
\"
><pre><span class=
\"
n
\"
>some</span> <span class=
\"
n
\"
>code</span> <span class=
\"
n
\"
>from</span> $
#{
snippet
.
id
}
\n
<span class=
\"
n
\"
>here</span> <span class=
\"
n
\"
>too</span>
\n
</pre></div></div>"
end
it
"should leave inline code untouched"
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