diff --git a/spec/rspec/core/formatters/html_formatted-2.0.0.html b/spec/rspec/core/formatters/html_formatted-2.0.0.html new file mode 100644 index 0000000000..0161d3027e --- /dev/null +++ b/spec/rspec/core/formatters/html_formatted-2.0.0.html @@ -0,0 +1,416 @@ + + + + + RSpec results + + + + + + + + +
+ +
+
+

RSpec Code Examples

+
+ +
+ + + +
+ +
+

 

+

 

+
+
+ + +
+
+
+
pending spec with no implementation
+ + + + +
is pending (PENDING: Not yet implemented)
+
+
+
+
+
pending command with block format
+
+
+
+
+
with content that would fail
+ + + + +
is pending (PENDING: No reason given)
+
+
+
+
+
with content that would pass
+ + + + +
+ fails + n.nnnns +
+
RSpec::Core::Pending::PendingExampleFixedError
+
./spec/rspec/core/resources/formatter_specs.rb:20:in `block (3 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:32:in `block (2 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (5 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `open'
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (4 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `chdir'
+./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `block (3 levels) in '
+
18      pending do
+19        1.should eq(1)
+20      end
+21    end
+22  end
+
+
+
+
+
+
+
passing spec
+ +
passesn.nnnns
+
+
+
+
+
failing spec
+ + + +
+ fails + n.nnnns +
+
+expected: 2
+     got: 1
+
+(compared using ==)
+
+
./spec/rspec/core/resources/formatter_specs.rb:33:in `block (2 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:32:in `block (2 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (5 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `open'
+./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (4 levels) in '
+./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `chdir'
+./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `block (3 levels) in '
+
31describe "failing spec" do
+32  it "fails" do
+33    1.should eq(2)
+34  end
+35end
+
+
+
+
+
+
+
a failing spec with odd backtraces
+ + + +
+ fails with a backtrace that has no file + n.nnnns +
+
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:32:in `block (2 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (5 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `open' +./spec/rspec/core/formatters/html_formatter_spec.rb:54:in `block (4 levels) in ' +./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `chdir' +./spec/rspec/core/formatters/html_formatter_spec.rb:53:in `block (3 levels) in '
+
-1# Couldn't get snippet for (erb)
+
+
+ +
+ fails with a backtrace containing an erb file + n.nnnns +
+
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_formatter_spec.rb b/spec/rspec/core/formatters/html_formatter_spec.rb index a6604eea77..bcb5b687cf 100644 --- a/spec/rspec/core/formatters/html_formatter_spec.rb +++ b/spec/rspec/core/formatters/html_formatter_spec.rb @@ -6,7 +6,7 @@ module RSpec module Core module Formatters - describe HtmlFormatter, :if => RUBY_VERSION =~ /^(1.8.7|1.9.2|1.9.3)$/ do + describe HtmlFormatter, :if => RUBY_VERSION =~ /^(1.8.7|1.9.2|1.9.3|2.0.0)$/ do let(:suffix) { if ::RUBY_PLATFORM == 'java' "-jruby" diff --git a/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html b/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html new file mode 100644 index 0000000000..a754dffac0 --- /dev/null +++ b/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html @@ -0,0 +1,416 @@ + + + + + RSpec results + + + + + + + + +
+ +
+
+

RSpec Code Examples

+
+ +
+ + + +
+ +
+

 

+

 

+
+
+ + +
+
+
+
pending spec with no implementation
+ + + + +
is pending (PENDING: Not yet implemented)
+
+
+
+
+
pending command with block format
+
+
+
+
+
with content that would fail
+ + + + +
is pending (PENDING: No reason given)
+
+
+
+
+
with content that would pass
+ + + + +
+ fails + n.nnnns +
+
RSpec::Core::Pending::PendingExampleFixedError
+ +
18      pending do
+19        1.should eq(1)
+20      end
+21    end
+22  end
+
+
+
+
+
+
+
passing spec
+ +
passesn.nnnns
+
+
+
+
+
failing spec
+ + + +
+ fails + n.nnnns +
+
+expected: 2
+     got: 1
+
+(compared using ==)
+
+ +
31describe "failing spec" do
+32  it "fails" do
+33    1.should eq(2)
+34  end
+35end
+
+
+
+
+
+
+
a failing spec with odd backtraces
+ + + +
+ fails with a backtrace that has no file + n.nnnns +
+
foo
+
(erb):1:in `<main>'
+./spec/rspec/core/resources/formatter_specs.rb:41 :in `block (2 levels) in <top (required)>'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:32 :in `block (2 levels) in <module:Formatters>'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:54 :in `block (5 levels) in <module:Formatters>'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:54 :in `open'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:54 :in `block (4 levels) in <module:Formatters>'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:53 :in `chdir'
+./spec/rspec/core/formatters/text_mate_formatter_spec.rb:53 :in `block (3 levels) in <module:Formatters>'
+
-1# Couldn't get snippet for (erb)
+
+
+ +
+ fails with a backtrace containing an erb file + n.nnnns +
+
Exception
+
/foo.html.erb:1 :in `<main>': foo (RuntimeError)
+
-1# Couldn't get snippet for /foo.html.erb
+
+
+
+
+ + +
+
+ +