test/functional/examples.rb in coderay-1.0.0.864rc3 vs test/functional/examples.rb in coderay-1.0.1
- old
+ new
@@ -32,11 +32,11 @@
</tr></table>
DIV
# output as standalone HTML page (using CSS classes)
page = CodeRay.scan('puts "Hello, world!"', :ruby).page
- assert page[<<-PAGE]
-<body style="background-color: white;">
+ assert_match <<-PAGE, page
+<body>
<table class="CodeRay"><tr>
<td class="line-numbers" title="double click to toggle" ondblclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>
</pre></td>
<td class="code"><pre>puts <span class="string"><span class="delimiter">"</span><span class="content">Hello, world!</span><span class="delimiter">"</span></span></pre></td>