diff --git a/lib/rspec/core/formatters/html_formatter.rb b/lib/rspec/core/formatters/html_formatter.rb index 30f4d3e4b3..b2166c08a2 100644 --- a/lib/rspec/core/formatters/html_formatter.rb +++ b/lib/rspec/core/formatters/html_formatter.rb @@ -72,7 +72,7 @@ def example_passed(example) end def example_failed(example) - counter = 0 + super(example) exception = example.metadata[:execution_result][:exception] extra = extra_failure_content(exception) failure_style = 'failed' @@ -84,7 +84,7 @@ def example_failed(example) move_progress @output.puts "
" @output.puts " #{h(example.description)}" - @output.puts "
" + @output.puts "
" @output.puts "
#{h(exception.message)}
" unless exception.nil? @output.puts "
#{format_backtrace(exception.backtrace, example).join("\n")}
" if exception @output.puts extra unless extra == "" diff --git a/spec/rspec/core/formatters/html_formatted-1.8.6.html b/spec/rspec/core/formatters/html_formatted-1.8.6.html index bc68678144..1a1d280928 100644 --- a/spec/rspec/core/formatters/html_formatted-1.8.6.html +++ b/spec/rspec/core/formatters/html_formatted-1.8.6.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -280,7 +280,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1:in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html b/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html index f745c2c38f..7260acdc1f 100644 --- a/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +++ b/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24
@@ -243,7 +243,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -273,7 +273,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -282,7 +282,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
#<Class:01x11fceed>
/foo.html.erb:1:in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/html_formatted-1.8.7.html b/spec/rspec/core/formatters/html_formatted-1.8.7.html index bc68678144..1a1d280928 100644 --- a/spec/rspec/core/formatters/html_formatted-1.8.7.html +++ b/spec/rspec/core/formatters/html_formatted-1.8.7.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -280,7 +280,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1:in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/html_formatted-1.9.1.html b/spec/rspec/core/formatters/html_formatted-1.9.1.html index bc8dd6930b..f357d78035 100644 --- a/spec/rspec/core/formatters/html_formatted-1.9.1.html +++ b/spec/rspec/core/formatters/html_formatted-1.9.1.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18:in `block (3 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in '
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1:in `
' ./spec/rspec/core/resources/formatter_specs.rb:41:in `block (2 levels) in ' @@ -287,7 +287,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1:in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/html_formatted-1.9.2.html b/spec/rspec/core/formatters/html_formatted-1.9.2.html index bc8dd6930b..f357d78035 100644 --- a/spec/rspec/core/formatters/html_formatted-1.9.2.html +++ b/spec/rspec/core/formatters/html_formatted-1.9.2.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18:in `block (3 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in '
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1:in `
' ./spec/rspec/core/resources/formatter_specs.rb:41:in `block (2 levels) in ' @@ -287,7 +287,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1:in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html b/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html index 21e8b43c13..7b2bc838bf 100644 --- a/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +++ b/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18 
 ./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24 
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -280,7 +280,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1 :in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html b/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html index 6cf5f7aca2..802b0e5add 100644 --- a/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +++ b/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18 
 ./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24 
@@ -243,7 +243,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -273,7 +273,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -282,7 +282,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
#<Class:01x101751>
/foo.html.erb:1 :in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html b/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html index 21e8b43c13..7b2bc838bf 100644 --- a/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +++ b/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18 
 ./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24 
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1
-1# Couldn't get snippet for (erb)
@@ -280,7 +280,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1 :in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html b/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html index fc7c4de18f..f45887906b 100644 --- a/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +++ b/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18 :in `block (3 levels) in '
 ./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24 :in `block (2 levels) in '
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1:in `
' ./spec/rspec/core/resources/formatter_specs.rb:41 :in `block (2 levels) in ' @@ -287,7 +287,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1 :in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb
diff --git a/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html b/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html index fc7c4de18f..f45887906b 100644 --- a/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +++ b/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html @@ -210,7 +210,7 @@

RSpec Code Examples

fails -
+
RSpec::Core::PendingExampleFixedError
./spec/rspec/core/resources/formatter_specs.rb:18 :in `block (3 levels) in '
 ./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24 :in `block (2 levels) in '
@@ -242,7 +242,7 @@ 

RSpec Code Examples

fails -
+
 expected 2
      got 1
@@ -271,7 +271,7 @@ 

RSpec Code Examples

fails with a backtrace that has no file -
+
foo
(erb):1:in `
' ./spec/rspec/core/resources/formatter_specs.rb:41 :in `block (2 levels) in ' @@ -287,7 +287,7 @@

RSpec Code Examples

fails with a backtrace containing an erb file -
+
Exception
/foo.html.erb:1 :in `
': foo (RuntimeError)
-1# Couldn't get snippet for /foo.html.erb