mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
Merged r16622 to r16625 (#26055).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16630 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1020,20 +1020,6 @@ EXPECTED
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_syntax_highlight_by_coderay_alias
|
||||
raw = <<-RAW
|
||||
<pre><code class="ecma_script">
|
||||
alert("hello, world");
|
||||
</code></pre>
|
||||
RAW
|
||||
|
||||
expected = <<-EXPECTED
|
||||
<pre><code class=\"ecma_script syntaxhl\"><span class=\"CodeRay\">alert(<span class=\"string\"><span class=\"delimiter\">"</span><span class=\"content\">hello, world</span><span class=\"delimiter\">"</span></span>);</span></code></pre>
|
||||
EXPECTED
|
||||
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_to_path_param
|
||||
assert_equal 'test1/test2', to_path_param('test1/test2')
|
||||
assert_equal 'test1/test2', to_path_param('/test1/test2/')
|
||||
|
||||
Reference in New Issue
Block a user