From 4ce4e5febba6f52ff4436a4e6409113822617369 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Thu, 14 Oct 2010 22:00:33 -0500 Subject: [PATCH] Update generated html for textmate and html formatter specs. --- .../core/formatters/html_formatted-1.8.7.html | 55 ++++++++------ .../core/formatters/html_formatted-1.9.2.html | 62 ++++++++++------ .../formatters/text_mate_formatted-1.8.7.html | 72 +++++++++++-------- .../formatters/text_mate_formatter_spec.rb | 2 +- 4 files changed, 120 insertions(+), 71 deletions(-) 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 e9c5ac6683..18f2032e78 100644 --- a/spec/rspec/core/formatters/html_formatted-1.8.7.html +++ b/spec/rspec/core/formatters/html_formatted-1.8.7.html @@ -184,7 +184,7 @@

RSpec Code Examples

pending spec with no implementation
- +
is pending (PENDING: Not Yet Implemented)
@@ -198,7 +198,7 @@

RSpec Code Examples

with content that would fail
- +
is pending (PENDING: No reason given)
@@ -207,24 +207,18 @@

RSpec Code Examples

with content that would pass
- +
fails
RSpec::Core::PendingExampleFixedError
-
./spec/rspec/core/resources/formatter_specs.rb:19
-./spec/spec_helper.rb:31:in `run'
-./spec/spec_helper.rb:31:in `run'
+        
./spec/rspec/core/resources/formatter_specs.rb:18
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `open'
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46
 ./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `chdir'
-./spec/rspec/core/formatters/html_formatter_spec.rb:45
-./spec/spec_helper.rb:82
-./spec/spec_helper.rb:54:in `instance_eval'
-./spec/spec_helper.rb:54:in `sandboxed'
-./spec/spec_helper.rb:82
+./spec/rspec/core/formatters/html_formatter_spec.rb:45
11          rescue Exception => e
 12          end
 13          raise RSpec::Core::PendingExampleFixedError.new if result
@@ -237,7 +231,7 @@ 

RSpec Code Examples

passing spec
- +
passes
@@ -245,7 +239,7 @@

RSpec Code Examples

failing spec
- +
fails
@@ -255,18 +249,13 @@

RSpec Code Examples

(compared using ==)
-
./spec/rspec/core/resources/formatter_specs.rb:34
-./spec/spec_helper.rb:31:in `run'
+        
./spec/rspec/core/resources/formatter_specs.rb:33
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `open'
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46
 ./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `chdir'
-./spec/rspec/core/formatters/html_formatter_spec.rb:45
-./spec/spec_helper.rb:82
-./spec/spec_helper.rb:54:in `instance_eval'
-./spec/spec_helper.rb:54:in `sandboxed'
-./spec/spec_helper.rb:82
+./spec/rspec/core/formatters/html_formatter_spec.rb:45
27        end
 28
 29        raise(RSpec::Expectations::ExpectationNotMetError.new(message))
@@ -275,8 +264,32 @@ 

RSpec Code Examples

+
+
+
a failing spec with odd backtraces
+ + +
+ fails with a backtrace that has no file +
+
foo
+
(erb):1
+
-1# Couldn't get snippet for (erb)
+
+
+ +
+ 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 20fb628ec4..016682ff39 100644 --- a/spec/rspec/core/formatters/html_formatted-1.9.2.html +++ b/spec/rspec/core/formatters/html_formatted-1.9.2.html @@ -184,7 +184,7 @@

RSpec Code Examples

pending spec with no implementation
- +
is pending (PENDING: Not Yet Implemented)
@@ -198,7 +198,7 @@

RSpec Code Examples

with content that would fail
- +
is pending (PENDING: No reason given)
@@ -207,24 +207,18 @@

RSpec Code Examples

with content that would pass
- +
fails
RSpec::Core::PendingExampleFixedError
-
./spec/rspec/core/resources/formatter_specs.rb:19:in `block (3 levels) in '
-./spec/spec_helper.rb:31:in `run'
-./spec/spec_helper.rb:31:in `run'
+        
./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 '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `open'
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (4 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `chdir'
-./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in '
-./spec/spec_helper.rb:82:in `block (3 levels) in '
-./spec/spec_helper.rb:54:in `instance_eval'
-./spec/spec_helper.rb:54:in `sandboxed'
-./spec/spec_helper.rb:82:in `block (2 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in '
11          rescue Exception => e
 12          end
 13          raise RSpec::Core::PendingExampleFixedError.new if result
@@ -237,7 +231,7 @@ 

RSpec Code Examples

passing spec
- +
passes
@@ -245,7 +239,7 @@

RSpec Code Examples

failing spec
- +
fails
@@ -255,18 +249,13 @@

RSpec Code Examples

(compared using ==)
-
./spec/rspec/core/resources/formatter_specs.rb:34:in `block (2 levels) in '
-./spec/spec_helper.rb:31:in `run'
+        
./spec/rspec/core/resources/formatter_specs.rb:33:in `block (2 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `open'
 ./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (4 levels) in '
 ./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `chdir'
-./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in '
-./spec/spec_helper.rb:82:in `block (3 levels) in '
-./spec/spec_helper.rb:54:in `instance_eval'
-./spec/spec_helper.rb:54:in `sandboxed'
-./spec/spec_helper.rb:82:in `block (2 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in '
27        end
 28
 29        raise(RSpec::Expectations::ExpectationNotMetError.new(message))
@@ -275,8 +264,39 @@ 

RSpec Code Examples

+
+
+
a failing spec with odd backtraces
+ + +
+ 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 ' +./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `open' +./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (4 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `chdir' +./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in '
+
-1# Couldn't get snippet for (erb)
+
+
+ +
+ 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.html b/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html index 8df9b74a20..d0322bfa79 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 @@ -184,7 +184,7 @@

RSpec Code Examples

pending spec with no implementation
- +
is pending (PENDING: Not Yet Implemented)
@@ -198,7 +198,7 @@

RSpec Code Examples

with content that would fail
- +
is pending (PENDING: No reason given)
@@ -207,22 +207,18 @@

RSpec Code Examples

with content that would pass
- +
fails - +
27        end
 28
 29        raise(RSpec::Expectations::ExpectationNotMetError.new(message))
@@ -272,8 +264,32 @@ 

RSpec Code Examples

+
+
+
a failing spec with odd backtraces
+ + +
+ fails with a backtrace that has no file +
+
foo
+
(erb):1
+
-1# Couldn't get snippet for (erb)
+
+
+ +
+ 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_formatter_spec.rb b/spec/rspec/core/formatters/text_mate_formatter_spec.rb index 2d43770a05..361bb5443d 100644 --- a/spec/rspec/core/formatters/text_mate_formatter_spec.rb +++ b/spec/rspec/core/formatters/text_mate_formatter_spec.rb @@ -70,7 +70,7 @@ module Formatters Dir.chdir(root) do actual_doc = Nokogiri::HTML(generated_html) - actual_doc.inner_html.should include('(erb):1:in') + actual_doc.inner_html.should include('(erb):1') end end