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
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
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