diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index c38581cda2179e35ed024b165cc447803248a418..3be0d7dbd8cd12be0fcda0e0b8689328c8519ee9 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -301,12 +301,12 @@ EXPECTED
     raw = <<-RAW
 <pre><code class="ruby">
 # Some ruby code here
-</pre></code>
+</code></pre>
 RAW
 
     expected = <<-EXPECTED
 <pre><code class="ruby syntaxhl"><span class="no">1</span> <span class="c"># Some ruby code here</span>
-</pre></code>
+</code></pre>
 EXPECTED
 
     assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')