<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,7 +11,7 @@ class HtmlFormatter &lt; DottedFormatter
 
   def start
     print &lt;&lt;-EOH
-&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
+&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
     &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
 &lt;html&gt;
 &lt;head&gt;</diff>
      <filename>lib/mspec/runner/formatters/html.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,10 +31,12 @@ describe HtmlFormatter, &quot;#start&quot; do
   it &quot;prints the HTML head&quot; do
     @formatter.start
     @out.should ==
-%[&lt;html&gt;
+%[&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
+    &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
+&lt;html&gt;
 &lt;head&gt;
-&lt;title&gt;Spec Output For #{RUBY_NAME} (#{RUBY_VERSION})&lt;/title&gt;
-&lt;script type=&quot;text/css&quot;&gt;
+&lt;title&gt;Spec Output For ruby (1.8.6)&lt;/title&gt;
+&lt;style type=&quot;text/css&quot;&gt;
 ul {
   list-style: none;
 }
@@ -44,7 +46,10 @@ ul {
 .pass {
   color: green;
 }
-&lt;/script&gt;
+#details :target {
+  background-color: #ffffe0;
+}
+&lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 ]
@@ -105,7 +110,10 @@ describe HtmlFormatter, &quot;#after&quot; do
     @state.exceptions &lt;&lt; [&quot;msg&quot;, MSpecExampleError.new(&quot;painful&quot;)]
     @formatter.tally.after @state
     @formatter.after @state
-    @out.should == %[&lt;li class=&quot;fail&quot;&gt;- it (FAILED - 1)&lt;/li&gt;\n&lt;li class=&quot;fail&quot;&gt;- it (ERROR - 2)&lt;/li&gt;\n]
+    @out.should == 
+%[&lt;li class=&quot;fail&quot;&gt;- it (&lt;a href=&quot;#details-1&quot;&gt;FAILED - 1&lt;/a&gt;)&lt;/li&gt;
+&lt;li class=&quot;fail&quot;&gt;- it (&lt;a href=&quot;#details-2&quot;&gt;ERROR - 2&lt;/a&gt;)&lt;/li&gt;
+]
   end
 end
 
@@ -121,6 +129,8 @@ describe HtmlFormatter, &quot;#finish&quot; do
     MSpec.stub!(:register)
     @formatter = HtmlFormatter.new
     @formatter.register
+    @exception = MSpecExampleError.new(&quot;broken&quot;)
+    @exception.stub!(:backtrace).and_return([&quot;file.rb:1&quot;, &quot;file.rb:2&quot;])
   end
 
   after :each do
@@ -128,7 +138,7 @@ describe HtmlFormatter, &quot;#finish&quot; do
   end
 
   it &quot;prints a failure message for an exception&quot; do
-    @state.exceptions &lt;&lt; [&quot;msg&quot;, MSpecExampleError.new(&quot;broken&quot;)]
+    @state.exceptions &lt;&lt; [&quot;msg&quot;, @exception]
     @formatter.instance_variable_set :@states, [@state]
     @formatter.finish
     @out.should =~ %r[&lt;p&gt;describe it ERROR&lt;/p&gt;]
@@ -136,7 +146,7 @@ describe HtmlFormatter, &quot;#finish&quot; do
 
   it &quot;prints a backtrace for an exception&quot; do
     @formatter.stub!(:backtrace).and_return(&quot;path/to/some/file.rb:35:in method&quot;)
-    @state.exceptions &lt;&lt; [&quot;msg&quot;, MSpecExampleError.new(&quot;broken&quot;)]
+    @state.exceptions &lt;&lt; [&quot;msg&quot;, @exception]
     @formatter.instance_variable_set :@states, [@state]
     @formatter.finish
     @out.should =~ %r[&lt;pre&gt;.*path/to/some/file.rb:35:in method.*&lt;/pre&gt;]m
@@ -155,15 +165,16 @@ describe HtmlFormatter, &quot;#finish&quot; do
   end
 
   it &quot;prints errors, backtraces, elapsed time, and tallies&quot; do
-    @state.exceptions &lt;&lt; [&quot;msg&quot;, MSpecExampleError.new(&quot;broken&quot;)]
+    @state.exceptions &lt;&lt; [&quot;msg&quot;, @exception]
     @formatter.stub!(:backtrace).and_return(&quot;path/to/some/file.rb:35:in method&quot;)
     @timer.should_receive(:format).and_return(&quot;Finished in 2.0 seconds&quot;)
     @tally.should_receive(:format).and_return(&quot;1 example, 1 failures&quot;)
     @formatter.instance_variable_set :@states, [@state]
     @formatter.finish
     @out.should ==
-%[&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;describe it ERROR&lt;/p&gt;
+%[&lt;hr&gt;
+&lt;ol id=&quot;details&quot;&gt;
+&lt;li id=&quot;details-1&quot;&gt;&lt;p&gt;describe it ERROR&lt;/p&gt;
 &lt;p&gt;MSpecExampleError: broken&lt;/p&gt;
 &lt;pre&gt;
 path/to/some/file.rb:35:in method&lt;/pre&gt;</diff>
      <filename>spec/runner/formatters/html_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4218fed7333151c4fd737056aee4175a5cd1638a</id>
    </parent>
  </parents>
  <author>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </author>
  <url>http://github.com/brixen/mspec/commit/9e4dd3abfbdf8f87c455414647f1070a5a6d39f5</url>
  <id>9e4dd3abfbdf8f87c455414647f1070a5a6d39f5</id>
  <committed-date>2008-05-23T22:52:37-07:00</committed-date>
  <authored-date>2008-05-23T22:52:37-07:00</authored-date>
  <message>Fixed spec failures for html formatter.</message>
  <tree>4262285222515713ec6132de5561fb23ea04dea4</tree>
  <committer>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </committer>
</commit>
