Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update generated html for textmate and html formatter specs.

  • Loading branch information...
commit 4ce4e5febba6f52ff4436a4e6409113822617369 1 parent 8563483
@dchelimsky dchelimsky authored
View
55 spec/rspec/core/formatters/html_formatted-1.8.7.html
@@ -184,7 +184,7 @@
<dt id="example_group_1">pending spec with no implementation</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_1');</script>
- <script type="text/javascript">moveProgressBar('20.0');</script>
+ <script type="text/javascript">moveProgressBar('14.2');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: Not Yet Implemented)</span></dd>
</dl>
</div>
@@ -198,7 +198,7 @@
<dt id="example_group_3">with content that would fail</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_3');</script>
- <script type="text/javascript">moveProgressBar('40.0');</script>
+ <script type="text/javascript">moveProgressBar('28.5');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: No reason given)</span></dd>
</dl>
</div>
@@ -207,24 +207,18 @@
<dt id="example_group_4">with content that would pass</dt>
<script type="text/javascript">makeRed('rspec-header');</script>
<script type="text/javascript">makeRed('example_group_4');</script>
- <script type="text/javascript">moveProgressBar('60.0');</script>
+ <script type="text/javascript">moveProgressBar('42.8');</script>
<dd class="spec pending_fixed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
<div class="message"><pre>RSpec::Core::PendingExampleFixedError</pre></div>
- <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:19
-./spec/spec_helper.rb:31:in `run'
-./spec/spec_helper.rb:31:in `run'
+ <div class="backtrace"><pre>./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</pre></div>
+./spec/rspec/core/formatters/html_formatter_spec.rb:45</pre></div>
<pre class="ruby"><code><span class="linenum">11</span> <span class="keyword">rescue</span> <span class="constant">Exception</span> <span class="punct">=&gt;</span> <span class="ident">e</span>
<span class="linenum">12</span> <span class="keyword">end</span>
<span class="offending"><span class="linenum">13</span> <span class="keyword">raise</span> <span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Core</span><span class="punct">::</span><span class="constant">PendingExampleFixedError</span><span class="punct">.</span><span class="ident">new</span> <span class="keyword">if</span> <span class="ident">result</span></span>
@@ -237,7 +231,7 @@
<div class="example_group">
<dl>
<dt id="example_group_5">passing spec</dt>
- <script type="text/javascript">moveProgressBar('80.0');</script>
+ <script type="text/javascript">moveProgressBar('57.1');</script>
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
</dl>
</div>
@@ -245,7 +239,7 @@
<dl>
<dt id="example_group_6">failing spec</dt>
<script type="text/javascript">makeRed('example_group_6');</script>
- <script type="text/javascript">moveProgressBar('100.0');</script>
+ <script type="text/javascript">moveProgressBar('71.4');</script>
<dd class="spec failed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
@@ -255,18 +249,13 @@
(compared using ==)
</pre></div>
- <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:34
-./spec/spec_helper.rb:31:in `run'
+ <div class="backtrace"><pre>./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</pre></div>
+./spec/rspec/core/formatters/html_formatter_spec.rb:45</pre></div>
<pre class="ruby"><code><span class="linenum">27</span> <span class="keyword">end</span>
<span class="linenum">28</span>
<span class="offending"><span class="linenum">29</span> <span class="keyword">raise</span><span class="punct">(</span><span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Expectations</span><span class="punct">::</span><span class="constant">ExpectationNotMetError</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="ident">message</span><span class="punct">))</span></span>
@@ -275,8 +264,32 @@
</dd>
</dl>
</div>
+<div class="example_group">
+ <dl>
+ <dt id="example_group_7">a failing spec with odd backtraces</dt>
+ <script type="text/javascript">makeRed('example_group_7');</script>
+ <script type="text/javascript">moveProgressBar('85.7');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace that has no file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>foo</pre></div>
+ <div class="backtrace"><pre>(erb):1</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
+ </div>
+ </dd>
+ <script type="text/javascript">moveProgressBar('100.0');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace containing an erb file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>Exception</pre></div>
+ <div class="backtrace"><pre>/foo.html.erb:1:in `<main>': foo (RuntimeError)</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
+ </div>
+ </dd>
+ </dl>
+</div>
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>x seconds</strong>";</script>
-<script type="text/javascript">document.getElementById('totals').innerHTML = "5 examples, 2 failures, 2 pending";</script>
+<script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
</div>
</div>
</body>
View
62 spec/rspec/core/formatters/html_formatted-1.9.2.html
@@ -184,7 +184,7 @@
<dt id="example_group_1">pending spec with no implementation</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_1');</script>
- <script type="text/javascript">moveProgressBar('20.0');</script>
+ <script type="text/javascript">moveProgressBar('14.2');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: Not Yet Implemented)</span></dd>
</dl>
</div>
@@ -198,7 +198,7 @@
<dt id="example_group_3">with content that would fail</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_3');</script>
- <script type="text/javascript">moveProgressBar('40.0');</script>
+ <script type="text/javascript">moveProgressBar('28.5');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: No reason given)</span></dd>
</dl>
</div>
@@ -207,24 +207,18 @@
<dt id="example_group_4">with content that would pass</dt>
<script type="text/javascript">makeRed('rspec-header');</script>
<script type="text/javascript">makeRed('example_group_4');</script>
- <script type="text/javascript">moveProgressBar('60.0');</script>
+ <script type="text/javascript">moveProgressBar('42.8');</script>
<dd class="spec pending_fixed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
<div class="message"><pre>RSpec::Core::PendingExampleFixedError</pre></div>
- <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:19:in `block (3 levels) in <top (required)>'
-./spec/spec_helper.rb:31:in `run'
-./spec/spec_helper.rb:31:in `run'
+ <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:18:in `block (3 levels) in <top (required)>'
./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in <module:Formatters>'
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in <module:Formatters>'
./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 <module:Formatters>'
./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 <module:Formatters>'
-./spec/spec_helper.rb:82:in `block (3 levels) in <top (required)>'
-./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 <top (required)>'</pre></div>
+./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in <module:Formatters>'</pre></div>
<pre class="ruby"><code><span class="linenum">11</span> <span class="keyword">rescue</span> <span class="constant">Exception</span> <span class="punct">=&gt;</span> <span class="ident">e</span>
<span class="linenum">12</span> <span class="keyword">end</span>
<span class="offending"><span class="linenum">13</span> <span class="keyword">raise</span> <span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Core</span><span class="punct">::</span><span class="constant">PendingExampleFixedError</span><span class="punct">.</span><span class="ident">new</span> <span class="keyword">if</span> <span class="ident">result</span></span>
@@ -237,7 +231,7 @@
<div class="example_group">
<dl>
<dt id="example_group_5">passing spec</dt>
- <script type="text/javascript">moveProgressBar('80.0');</script>
+ <script type="text/javascript">moveProgressBar('57.1');</script>
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
</dl>
</div>
@@ -245,7 +239,7 @@
<dl>
<dt id="example_group_6">failing spec</dt>
<script type="text/javascript">makeRed('example_group_6');</script>
- <script type="text/javascript">moveProgressBar('100.0');</script>
+ <script type="text/javascript">moveProgressBar('71.4');</script>
<dd class="spec failed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
@@ -255,18 +249,13 @@
(compared using ==)
</pre></div>
- <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:34:in `block (2 levels) in <top (required)>'
-./spec/spec_helper.rb:31:in `run'
+ <div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:33:in `block (2 levels) in <top (required)>'
./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in <module:Formatters>'
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in <module:Formatters>'
./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 <module:Formatters>'
./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 <module:Formatters>'
-./spec/spec_helper.rb:82:in `block (3 levels) in <top (required)>'
-./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 <top (required)>'</pre></div>
+./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `block (3 levels) in <module:Formatters>'</pre></div>
<pre class="ruby"><code><span class="linenum">27</span> <span class="keyword">end</span>
<span class="linenum">28</span>
<span class="offending"><span class="linenum">29</span> <span class="keyword">raise</span><span class="punct">(</span><span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Expectations</span><span class="punct">::</span><span class="constant">ExpectationNotMetError</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="ident">message</span><span class="punct">))</span></span>
@@ -275,8 +264,39 @@
</dd>
</dl>
</div>
+<div class="example_group">
+ <dl>
+ <dt id="example_group_7">a failing spec with odd backtraces</dt>
+ <script type="text/javascript">makeRed('example_group_7');</script>
+ <script type="text/javascript">moveProgressBar('85.7');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace that has no file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>foo</pre></div>
+ <div class="backtrace"><pre>(erb):1:in `<main>'
+./spec/rspec/core/resources/formatter_specs.rb:41:in `block (2 levels) in <top (required)>'
+./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `block (2 levels) in <module:Formatters>'
+./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `block (5 levels) in <module:Formatters>'
+./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 <module:Formatters>'
+./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 <module:Formatters>'</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
+ </div>
+ </dd>
+ <script type="text/javascript">moveProgressBar('100.0');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace containing an erb file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>Exception</pre></div>
+ <div class="backtrace"><pre>/foo.html.erb:1:in `<main>': foo (RuntimeError)</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
+ </div>
+ </dd>
+ </dl>
+</div>
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>x seconds</strong>";</script>
-<script type="text/javascript">document.getElementById('totals').innerHTML = "5 examples, 2 failures, 2 pending";</script>
+<script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
</div>
</div>
</body>
View
72 spec/rspec/core/formatters/text_mate_formatted-1.8.7.html
@@ -184,7 +184,7 @@
<dt id="example_group_1">pending spec with no implementation</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_1');</script>
- <script type="text/javascript">moveProgressBar('20.0');</script>
+ <script type="text/javascript">moveProgressBar('14.2');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: Not Yet Implemented)</span></dd>
</dl>
</div>
@@ -198,7 +198,7 @@
<dt id="example_group_3">with content that would fail</dt>
<script type="text/javascript">makeYellow('rspec-header');</script>
<script type="text/javascript">makeYellow('example_group_3');</script>
- <script type="text/javascript">moveProgressBar('40.0');</script>
+ <script type="text/javascript">moveProgressBar('28.5');</script>
<dd class="spec not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: No reason given)</span></dd>
</dl>
</div>
@@ -207,22 +207,18 @@
<dt id="example_group_4">with content that would pass</dt>
<script type="text/javascript">makeRed('rspec-header');</script>
<script type="text/javascript">makeRed('example_group_4');</script>
- <script type="text/javascript">moveProgressBar('60.0');</script>
+ <script type="text/javascript">moveProgressBar('42.8');</script>
<dd class="spec pending_fixed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
<div class="message"><pre>RSpec::Core::PendingExampleFixedError</pre></div>
- <div class="backtrace"><pre><a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&line=19">./spec/rspec/core/resources/formatter_specs.rb:19</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=23">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:23</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a> :in `open'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=37">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37</a> :in `chdir'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=37">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=73">./spec/spec_helper.rb:73</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=49">./spec/spec_helper.rb:49</a> :in `instance_eval'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=49">./spec/spec_helper.rb:49</a> :in `sandboxed'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=73">./spec/spec_helper.rb:73</a> </pre></div>
+ <div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&line=18">./spec/rspec/core/resources/formatter_specs.rb:18</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=24">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a> :in `open'
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=46">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:46</a> :in `chdir'
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=46">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:46</a> </pre></div>
<pre class="ruby"><code><span class="linenum">11</span> <span class="keyword">rescue</span> <span class="constant">Exception</span> <span class="punct">=&gt;</span> <span class="ident">e</span>
<span class="linenum">12</span> <span class="keyword">end</span>
<span class="offending"><span class="linenum">13</span> <span class="keyword">raise</span> <span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Core</span><span class="punct">::</span><span class="constant">PendingExampleFixedError</span><span class="punct">.</span><span class="ident">new</span> <span class="keyword">if</span> <span class="ident">result</span></span>
@@ -235,7 +231,7 @@
<div class="example_group">
<dl>
<dt id="example_group_5">passing spec</dt>
- <script type="text/javascript">moveProgressBar('80.0');</script>
+ <script type="text/javascript">moveProgressBar('57.1');</script>
<dd class="spec passed"><span class="passed_spec_name">passes</span></dd>
</dl>
</div>
@@ -243,7 +239,7 @@
<dl>
<dt id="example_group_6">failing spec</dt>
<script type="text/javascript">makeRed('example_group_6');</script>
- <script type="text/javascript">moveProgressBar('100.0');</script>
+ <script type="text/javascript">moveProgressBar('71.4');</script>
<dd class="spec failed">
<span class="failed_spec_name">fails</span>
<div class="failure" id="failure_0">
@@ -253,17 +249,13 @@
(compared using ==)
</pre></div>
- <div class="backtrace"><pre><a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&line=34">./spec/rspec/core/resources/formatter_specs.rb:34</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=23">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:23</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a> :in `open'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=38">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:38</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=37">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37</a> :in `chdir'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=37">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=73">./spec/spec_helper.rb:73</a>
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=49">./spec/spec_helper.rb:49</a> :in `instance_eval'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=49">./spec/spec_helper.rb:49</a> :in `sandboxed'
-<a href="txmt://open?url=file:///Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/spec/spec_helper.rb&line=73">./spec/spec_helper.rb:73</a> </pre></div>
+ <div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&line=33">./spec/rspec/core/resources/formatter_specs.rb:33</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=24">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:24</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a> :in `open'
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=47">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:47</a>
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=46">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:46</a> :in `chdir'
+<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec2/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&line=46">./spec/rspec/core/formatters/text_mate_formatter_spec.rb:46</a> </pre></div>
<pre class="ruby"><code><span class="linenum">27</span> <span class="keyword">end</span>
<span class="linenum">28</span>
<span class="offending"><span class="linenum">29</span> <span class="keyword">raise</span><span class="punct">(</span><span class="constant">RSpec</span><span class="punct">::</span><span class="constant">Expectations</span><span class="punct">::</span><span class="constant">ExpectationNotMetError</span><span class="punct">.</span><span class="ident">new</span><span class="punct">(</span><span class="ident">message</span><span class="punct">))</span></span>
@@ -272,8 +264,32 @@
</dd>
</dl>
</div>
+<div class="example_group">
+ <dl>
+ <dt id="example_group_7">a failing spec with odd backtraces</dt>
+ <script type="text/javascript">makeRed('example_group_7');</script>
+ <script type="text/javascript">moveProgressBar('85.7');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace that has no file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>foo</pre></div>
+ <div class="backtrace"><pre>(erb):1</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
+ </div>
+ </dd>
+ <script type="text/javascript">moveProgressBar('100.0');</script>
+ <dd class="spec failed">
+ <span class="failed_spec_name">fails with a backtrace containing an erb file</span>
+ <div class="failure" id="failure_0">
+ <div class="message"><pre>Exception</pre></div>
+ <div class="backtrace"><pre><a href="txmt://open?url=file:///foo.html.erb&line=1">/foo.html.erb:1</a> :in `<main>': foo (RuntimeError)</pre></div>
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
+ </div>
+ </dd>
+ </dl>
+</div>
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>x seconds</strong>";</script>
-<script type="text/javascript">document.getElementById('totals').innerHTML = "5 examples, 2 failures, 2 pending";</script>
+<script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
</div>
</div>
</body>
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.