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
Kazuhiko Shiozaki
gitlab-ce
Commits
86e4f6e0
Commit
86e4f6e0
authored
Jan 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f304f975
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+3
-3
No files found.
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
86e4f6e0
...
@@ -378,10 +378,10 @@ describe GitlabMarkdownHelper do
...
@@ -378,10 +378,10 @@ describe GitlabMarkdownHelper do
it
"should leave code blocks untouched"
do
it
"should leave code blocks untouched"
do
helper
.
stub
(
:user_color_scheme_class
).
and_return
(
:white
)
helper
.
stub
(
:user_color_scheme_class
).
and_return
(
:white
)
target_html
=
"
<div class=
\"
white
\"
><div class=
\"
highlight
\"
><pre><span class=
\"
n
\"
>some</span> <span class=
\"
n
\"
>code</span> <span class=
\"
n
\"
>from</span> <span class=
\"
err
\"
>$</span><span class=
\"
mi
\"
>
#{
snippet
.
id
}
</span>
"
target_html
=
"
\n
<div class=
\"
highlighted-data white
\"
>
\n
<div class=
\"
highlight
\"
>
\n
<pre>
\n
<code class=
\"\"
>some code from $
#{
snippet
.
id
}
\n
here too
\n
</code>
\n
</pre>
\n
</div>
\n
</div>
\n\n
"
helper
.
markdown
(
"
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
"
).
should
include
(
target_html
)
helper
.
markdown
(
"
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
"
).
should
==
target_html
helper
.
markdown
(
"
\n
```
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
```
\n
"
).
should
include
(
target_html
)
helper
.
markdown
(
"
\n
```
\n
some code from $
#{
snippet
.
id
}
\n
here too
\n
```
\n
"
).
should
==
target_html
end
end
it
"should leave inline code untouched"
do
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