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
08951620
Commit
08951620
authored
Jan 15, 2015
by
Stefan Tatschner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
bf079c24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
spec/helpers/events_helper_spec.rb
spec/helpers/events_helper_spec.rb
+2
-1
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+1
-1
spec/models/wiki_page_spec.rb
spec/models/wiki_page_spec.rb
+1
-1
No files found.
spec/helpers/events_helper_spec.rb
View file @
08951620
...
...
@@ -26,7 +26,8 @@ describe EventsHelper do
it
'should display the first line of a code block'
do
input
=
"```
\n
Code block
\n
with two lines
\n
```"
expected
=
'<pre><code class="">Code block...</code></pre>'
expected
=
'<pre class="code highlight white plaintext"><code>'
\
'Code block...</code></pre>'
expect
(
event_note
(
input
)).
to
match
(
expected
)
end
...
...
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
08951620
...
...
@@ -566,7 +566,7 @@ describe GitlabMarkdownHelper do
it
"should leave code blocks untouched"
do
helper
.
stub
(
:user_color_scheme_class
).
and_return
(
:white
)
target_html
=
"
\n
<div class=
\"
highlighted-data white
\"
>
\n
<div class=
\"
highlight
\"
>
\n
<pre><code class=
\"\"
>some code from $
#{
snippet
.
id
}
\n
here too
\n
</code></pre>
\n
</div>
\n
</div>
\n
\n
"
target_html
=
"
<pre class=
\"
code highlight white plaintext
\"
><code>some code from $40
\n
here too
\n
</code></pre>
\n
"
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
==
target_html
...
...
spec/models/wiki_page_spec.rb
View file @
08951620
...
...
@@ -36,7 +36,7 @@ describe WikiPage do
end
it
"sets the version attribute"
do
@wiki_page
.
version
.
should
be_a
G
r
it
::
Commit
@wiki_page
.
version
.
should
be_a
G
ollum
::
G
it
::
Commit
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