rspec-core 2.14.7 → 2.14.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWFiZDA5MTZlZDE3NzI2MTljNTcyNGY1NGFkMzE2NGU4M2JhOTBmYQ==
4
+ MTM2OGJjNTJkZDc1YzY0YjQyZjNkMzAxNmE5ZWMxZGMxZmU5ZDc2Zg==
5
5
  data.tar.gz: !binary |-
6
- MWQ2MmRjM2YyNmY2ZjNkZGU5ZjU5YTA4MjBhYTJmOWRhMzE1MjdiZQ==
6
+ NjNkNjgwMDViNGQ0NjJiNzYyYzgyMTY4Njk4OGM1Y2EwZmYzOTg3Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjZkZGU4MDM0YzAzNGY0ODBmODgyNzJkOTQzNjJjMTE3YzBiOGMwM2EwMDM3
10
- YzVjMmZhYzM5OTJkMDdlOGRmMDlmNWZiZjljYWYzN2Y0NzI3ZTFlZjFiOWIw
11
- OTdjZDRhMWU3NTU2MDkyMWIzNWQwZjdmZGJlNTIxMjhlNzE0MDc=
9
+ ODc0NWVjMjVjM2QxZDE3YTFiZmMwY2Y4MzY0NTg2OGFmZDJkNjMzOWM0ZTI4
10
+ NWE2NDJhNmQ0ZmIwMDA1MzAyYjBmZWRkYmRhZTA1MTY0ODZhOWVlMWFlNjQz
11
+ N2QxZmY2NjIwYzA4Nzk1ZjM0NzU4NzcxODcyZjI0ZWUyZjZlOTY=
12
12
  data.tar.gz: !binary |-
13
- MWZmMjYwZGM2ZTBlNjNiODA1MTBjYWY3NzZmNmUwMGI3ZjkyM2JhZDkyODgy
14
- NzZjODk4YTNhYzNmNThkN2Q3M2E3NjhiZDkwYTFkMWQ4NmU0ZGI2MGYyODdj
15
- OWY0YjE1MGNlOTE4NzdhNzFkNzUxODdhMDEzY2I1MmUxZmExMDU=
13
+ MzFiOTZkZWI3ZDFmMDg5ODMzY2M3ODdlYTI1MWVlOTI1OTU5OGI4OTYyNDkz
14
+ OThkMWZiYTBkNmFkMmIzMThjZDc4OTI1NDY3OTNkZjc5NDYzNTcwMDUzNTFk
15
+ NTE1MzA0MGE5YTg1Njg4OGQwM2M1ZDI1ZGJjODE4MTNjMDJkM2Q=
@@ -1,3 +1,11 @@
1
+ ### 2.14.8 / 2014-02-27
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v2.14.7...v2.14.8)
3
+
4
+ Bug fixes:
5
+
6
+ * Fix regression with the `TextMateFormatter` that prevented backtrace links
7
+ from being clickable. (Stefan Daschek)
8
+
1
9
  ### 2.14.7 / 2013-10-29
2
10
  [full changelog](http://github.com/rspec/rspec-core/compare/v2.14.6...v2.14.7)
3
11
 
@@ -6,6 +6,18 @@ module RSpec
6
6
  module Formatters
7
7
  # Formats backtraces so they're clickable by TextMate
8
8
  class TextMateFormatter < HtmlFormatter
9
+ class NonEscapingHtmlPrinter < RSpec::Core::Formatters::HtmlPrinter
10
+ def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content, escape_backtrace = false)
11
+ # Call implementation from superclass, but ignore `escape_backtrace` and always pass `false` instead.
12
+ super(pending_fixed, description, run_time, failure_id, exception, extra_content, false)
13
+ end
14
+ end
15
+
16
+ def initialize(output)
17
+ super
18
+ @printer = NonEscapingHtmlPrinter.new(output)
19
+ end
20
+
9
21
  def backtrace_line(line, skip_textmate_conversion=false)
10
22
  if skip_textmate_conversion
11
23
  super(line)
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Core
3
3
  module Version
4
- STRING = '2.14.7'
4
+ STRING = '2.14.8'
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,425 @@
1
+ <!DOCTYPE html>
2
+ <html lang='en'>
3
+ <head>
4
+ <title>RSpec results</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <meta http-equiv="Expires" content="-1" />
7
+ <meta http-equiv="Pragma" content="no-cache" />
8
+ <style type="text/css">
9
+ body {
10
+ margin: 0;
11
+ padding: 0;
12
+ background: #fff;
13
+ font-size: 80%;
14
+ }
15
+ </style>
16
+ <script type="text/javascript">
17
+ // <![CDATA[
18
+
19
+ function addClass(element_id, classname) {
20
+ document.getElementById(element_id).className += (" " + classname);
21
+ }
22
+
23
+ function removeClass(element_id, classname) {
24
+ var elem = document.getElementById(element_id);
25
+ var classlist = elem.className.replace(classname,'');
26
+ elem.className = classlist;
27
+ }
28
+
29
+ function moveProgressBar(percentDone) {
30
+ document.getElementById("rspec-header").style.width = percentDone +"%";
31
+ }
32
+
33
+ function makeRed(element_id) {
34
+ removeClass(element_id, 'passed');
35
+ removeClass(element_id, 'not_implemented');
36
+ addClass(element_id,'failed');
37
+ }
38
+
39
+ function makeYellow(element_id) {
40
+ var elem = document.getElementById(element_id);
41
+ if (elem.className.indexOf("failed") == -1) { // class doesn't includes failed
42
+ if (elem.className.indexOf("not_implemented") == -1) { // class doesn't include not_implemented
43
+ removeClass(element_id, 'passed');
44
+ addClass(element_id,'not_implemented');
45
+ }
46
+ }
47
+ }
48
+
49
+ function apply_filters() {
50
+ var passed_filter = document.getElementById('passed_checkbox').checked;
51
+ var failed_filter = document.getElementById('failed_checkbox').checked;
52
+ var pending_filter = document.getElementById('pending_checkbox').checked;
53
+
54
+ assign_display_style("example passed", passed_filter);
55
+ assign_display_style("example failed", failed_filter);
56
+ assign_display_style("example not_implemented", pending_filter);
57
+
58
+ assign_display_style_for_group("example_group passed", passed_filter);
59
+ assign_display_style_for_group("example_group not_implemented", pending_filter, pending_filter || passed_filter);
60
+ assign_display_style_for_group("example_group failed", failed_filter, failed_filter || pending_filter || passed_filter);
61
+ }
62
+
63
+ function get_display_style(display_flag) {
64
+ var style_mode = 'none';
65
+ if (display_flag == true) {
66
+ style_mode = 'block';
67
+ }
68
+ return style_mode;
69
+ }
70
+
71
+ function assign_display_style(classname, display_flag) {
72
+ var style_mode = get_display_style(display_flag);
73
+ var elems = document.getElementsByClassName(classname)
74
+ for (var i=0; i<elems.length;i++) {
75
+ elems[i].style.display = style_mode;
76
+ }
77
+ }
78
+
79
+ function assign_display_style_for_group(classname, display_flag, subgroup_flag) {
80
+ var display_style_mode = get_display_style(display_flag);
81
+ var subgroup_style_mode = get_display_style(subgroup_flag);
82
+ var elems = document.getElementsByClassName(classname)
83
+ for (var i=0; i<elems.length;i++) {
84
+ var style_mode = display_style_mode;
85
+ if ((display_flag != subgroup_flag) && (elems[i].getElementsByTagName('dt')[0].innerHTML.indexOf(", ") != -1)) {
86
+ elems[i].style.display = subgroup_style_mode;
87
+ } else {
88
+ elems[i].style.display = display_style_mode;
89
+ }
90
+ }
91
+ }
92
+
93
+ // ]]>
94
+ </script>
95
+ <style type="text/css">
96
+ #rspec-header {
97
+ background: #65C400; color: #fff; height: 4em;
98
+ }
99
+
100
+ .rspec-report h1 {
101
+ margin: 0px 10px 0px 10px;
102
+ padding: 10px;
103
+ font-family: "Lucida Grande", Helvetica, sans-serif;
104
+ font-size: 1.8em;
105
+ position: absolute;
106
+ }
107
+
108
+ #label {
109
+ float:left;
110
+ }
111
+
112
+ #display-filters {
113
+ float:left;
114
+ padding: 28px 0 0 40%;
115
+ font-family: "Lucida Grande", Helvetica, sans-serif;
116
+ }
117
+
118
+ #summary {
119
+ float:right;
120
+ padding: 5px 10px;
121
+ font-family: "Lucida Grande", Helvetica, sans-serif;
122
+ text-align: right;
123
+ }
124
+
125
+ #summary p {
126
+ margin: 0 0 0 2px;
127
+ }
128
+
129
+ #summary #totals {
130
+ font-size: 1.2em;
131
+ }
132
+
133
+ .example_group {
134
+ margin: 0 10px 5px;
135
+ background: #fff;
136
+ }
137
+
138
+ dl {
139
+ margin: 0; padding: 0 0 5px;
140
+ font: normal 11px "Lucida Grande", Helvetica, sans-serif;
141
+ }
142
+
143
+ dt {
144
+ padding: 3px;
145
+ background: #65C400;
146
+ color: #fff;
147
+ font-weight: bold;
148
+ }
149
+
150
+ dd {
151
+ margin: 5px 0 5px 5px;
152
+ padding: 3px 3px 3px 18px;
153
+ }
154
+
155
+ dd .duration {
156
+ padding-left: 5px;
157
+ text-align: right;
158
+ right: 0px;
159
+ float:right;
160
+ }
161
+
162
+ dd.example.passed {
163
+ border-left: 5px solid #65C400;
164
+ border-bottom: 1px solid #65C400;
165
+ background: #DBFFB4; color: #3D7700;
166
+ }
167
+
168
+ dd.example.not_implemented {
169
+ border-left: 5px solid #FAF834;
170
+ border-bottom: 1px solid #FAF834;
171
+ background: #FCFB98; color: #131313;
172
+ }
173
+
174
+ dd.example.pending_fixed {
175
+ border-left: 5px solid #0000C2;
176
+ border-bottom: 1px solid #0000C2;
177
+ color: #0000C2; background: #D3FBFF;
178
+ }
179
+
180
+ dd.example.failed {
181
+ border-left: 5px solid #C20000;
182
+ border-bottom: 1px solid #C20000;
183
+ color: #C20000; background: #FFFBD3;
184
+ }
185
+
186
+
187
+ dt.not_implemented {
188
+ color: #000000; background: #FAF834;
189
+ }
190
+
191
+ dt.pending_fixed {
192
+ color: #FFFFFF; background: #C40D0D;
193
+ }
194
+
195
+ dt.failed {
196
+ color: #FFFFFF; background: #C40D0D;
197
+ }
198
+
199
+
200
+ #rspec-header.not_implemented {
201
+ color: #000000; background: #FAF834;
202
+ }
203
+
204
+ #rspec-header.pending_fixed {
205
+ color: #FFFFFF; background: #C40D0D;
206
+ }
207
+
208
+ #rspec-header.failed {
209
+ color: #FFFFFF; background: #C40D0D;
210
+ }
211
+
212
+
213
+ .backtrace {
214
+ color: #000;
215
+ font-size: 12px;
216
+ }
217
+
218
+ a {
219
+ color: #BE5C00;
220
+ }
221
+
222
+ /* Ruby code, style similar to vibrant ink */
223
+ .ruby {
224
+ font-size: 12px;
225
+ font-family: monospace;
226
+ color: white;
227
+ background-color: black;
228
+ padding: 0.1em 0 0.2em 0;
229
+ }
230
+
231
+ .ruby .keyword { color: #FF6600; }
232
+ .ruby .constant { color: #339999; }
233
+ .ruby .attribute { color: white; }
234
+ .ruby .global { color: white; }
235
+ .ruby .module { color: white; }
236
+ .ruby .class { color: white; }
237
+ .ruby .string { color: #66FF00; }
238
+ .ruby .ident { color: white; }
239
+ .ruby .method { color: #FFCC00; }
240
+ .ruby .number { color: white; }
241
+ .ruby .char { color: white; }
242
+ .ruby .comment { color: #9933CC; }
243
+ .ruby .symbol { color: white; }
244
+ .ruby .regex { color: #44B4CC; }
245
+ .ruby .punct { color: white; }
246
+ .ruby .escape { color: white; }
247
+ .ruby .interp { color: white; }
248
+ .ruby .expr { color: white; }
249
+
250
+ .ruby .offending { background-color: gray; }
251
+ .ruby .linenum {
252
+ width: 75px;
253
+ padding: 0.1em 1em 0.2em 0;
254
+ color: #000000;
255
+ background-color: #FFFBD3;
256
+ }
257
+
258
+ </style>
259
+ </head>
260
+ <body>
261
+ <div class="rspec-report">
262
+
263
+ <div id="rspec-header">
264
+ <div id="label">
265
+ <h1>RSpec Code Examples</h1>
266
+ </div>
267
+
268
+ <div id="display-filters">
269
+ <input id="passed_checkbox" name="passed_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="1" /> <label for="passed_checkbox">Passed</label>
270
+ <input id="failed_checkbox" name="failed_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="2" /> <label for="failed_checkbox">Failed</label>
271
+ <input id="pending_checkbox" name="pending_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="3" /> <label for="pending_checkbox">Pending</label>
272
+ </div>
273
+
274
+ <div id="summary">
275
+ <p id="totals">&#160;</p>
276
+ <p id="duration">&#160;</p>
277
+ </div>
278
+ </div>
279
+
280
+
281
+ <div class="results">
282
+ <div id="div_group_1" class="example_group passed">
283
+ <dl style="margin-left: 0px;">
284
+ <dt id="example_group_1" class="passed">pending spec with no implementation</dt>
285
+ <script type="text/javascript">makeYellow('rspec-header');</script>
286
+ <script type="text/javascript">makeYellow('div_group_1');</script>
287
+ <script type="text/javascript">makeYellow('example_group_1');</script>
288
+ <script type="text/javascript">moveProgressBar('14.2');</script>
289
+ <dd class="example not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: Not yet implemented)</span></dd>
290
+ </dl>
291
+ </div>
292
+ <div id="div_group_2" class="example_group passed">
293
+ <dl style="margin-left: 0px;">
294
+ <dt id="example_group_2" class="passed">pending command with block format</dt>
295
+ </dl>
296
+ </div>
297
+ <div id="div_group_3" class="example_group passed">
298
+ <dl style="margin-left: 15px;">
299
+ <dt id="example_group_3" class="passed">with content that would fail</dt>
300
+ <script type="text/javascript">makeYellow('rspec-header');</script>
301
+ <script type="text/javascript">makeYellow('div_group_3');</script>
302
+ <script type="text/javascript">makeYellow('example_group_3');</script>
303
+ <script type="text/javascript">moveProgressBar('28.5');</script>
304
+ <dd class="example not_implemented"><span class="not_implemented_spec_name">is pending (PENDING: No reason given)</span></dd>
305
+ </dl>
306
+ </div>
307
+ <div id="div_group_4" class="example_group passed">
308
+ <dl style="margin-left: 15px;">
309
+ <dt id="example_group_4" class="passed">with content that would pass</dt>
310
+ <script type="text/javascript">makeRed('rspec-header');</script>
311
+ <script type="text/javascript">makeRed('div_group_4');</script>
312
+ <script type="text/javascript">makeRed('example_group_4');</script>
313
+ <script type="text/javascript">moveProgressBar('42.8');</script>
314
+ <dd class="example pending_fixed">
315
+ <span class="failed_spec_name">fails</span>
316
+ <span class="duration">n.nnnns</span>
317
+ <div class="failure" id="failure_1">
318
+ <div class="message"><pre>RSpec::Core::Pending::PendingExampleFixedError</pre></div>
319
+ <div class="backtrace"><pre>&lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&amp;amp;line=18&quot;&gt;./spec/rspec/core/resources/formatter_specs.rb:18&lt;/a&gt; :in `block (3 levels) in &amp;lt;top (required)&amp;gt;&amp;#39;
320
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=33&quot;&gt;./spec/support/sandboxed_mock_space.rb:33&lt;/a&gt; :in `block in run&amp;#39;
321
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=72&quot;&gt;./spec/support/sandboxed_mock_space.rb:72&lt;/a&gt; :in `sandboxed&amp;#39;
322
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=32&quot;&gt;./spec/support/sandboxed_mock_space.rb:32&lt;/a&gt; :in `run&amp;#39;
323
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=37&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37&lt;/a&gt; :in `block (2 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
324
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (5 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
325
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `open&amp;#39;
326
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (4 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
327
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `chdir&amp;#39;
328
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `block (3 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
329
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=38&quot;&gt;./spec/support/sandboxed_mock_space.rb:38&lt;/a&gt; :in `sandboxed&amp;#39;</pre></div>
330
+ <pre class="ruby"><code><span class="linenum">16</span> <span class="ident">context</span> <span class="punct">&quot;</span><span class="string">with content that would pass</span><span class="punct">&quot;</span> <span class="keyword">do</span>
331
+ <span class="linenum">17</span> <span class="ident">it</span> <span class="punct">&quot;</span><span class="string">fails</span><span class="punct">&quot;</span> <span class="keyword">do</span>
332
+ <span class="offending"><span class="linenum">18</span> <span class="ident">pending</span> <span class="keyword">do</span></span>
333
+ <span class="linenum">19</span> <span class="ident">expect</span><span class="punct">(</span><span class="number">1</span><span class="punct">).</span><span class="ident">to</span> <span class="ident">eq</span><span class="punct">(</span><span class="number">1</span><span class="punct">)</span>
334
+ <span class="linenum">20</span> <span class="keyword">end</span></code></pre>
335
+ </div>
336
+ </dd>
337
+ </dl>
338
+ </div>
339
+ <div id="div_group_5" class="example_group passed">
340
+ <dl style="margin-left: 0px;">
341
+ <dt id="example_group_5" class="passed">passing spec</dt>
342
+ <script type="text/javascript">moveProgressBar('57.1');</script>
343
+ <dd class="example passed"><span class="passed_spec_name">passes</span><span class='duration'>n.nnnns</span></dd>
344
+ </dl>
345
+ </div>
346
+ <div id="div_group_6" class="example_group passed">
347
+ <dl style="margin-left: 0px;">
348
+ <dt id="example_group_6" class="passed">failing spec</dt>
349
+ <script type="text/javascript">makeRed('div_group_6');</script>
350
+ <script type="text/javascript">makeRed('example_group_6');</script>
351
+ <script type="text/javascript">moveProgressBar('71.4');</script>
352
+ <dd class="example failed">
353
+ <span class="failed_spec_name">fails</span>
354
+ <span class="duration">n.nnnns</span>
355
+ <div class="failure" id="failure_2">
356
+ <div class="message"><pre>
357
+ expected: 2
358
+ got: 1
359
+
360
+ (compared using ==)
361
+ </pre></div>
362
+ <div class="backtrace"><pre>&lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&amp;amp;line=33&quot;&gt;./spec/rspec/core/resources/formatter_specs.rb:33&lt;/a&gt; :in `block (2 levels) in &amp;lt;top (required)&amp;gt;&amp;#39;
363
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=33&quot;&gt;./spec/support/sandboxed_mock_space.rb:33&lt;/a&gt; :in `block in run&amp;#39;
364
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=72&quot;&gt;./spec/support/sandboxed_mock_space.rb:72&lt;/a&gt; :in `sandboxed&amp;#39;
365
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=32&quot;&gt;./spec/support/sandboxed_mock_space.rb:32&lt;/a&gt; :in `run&amp;#39;
366
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=37&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37&lt;/a&gt; :in `block (2 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
367
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (5 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
368
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `open&amp;#39;
369
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (4 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
370
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `chdir&amp;#39;
371
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `block (3 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
372
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=38&quot;&gt;./spec/support/sandboxed_mock_space.rb:38&lt;/a&gt; :in `sandboxed&amp;#39;</pre></div>
373
+ <pre class="ruby"><code><span class="linenum">31</span><span class="ident">describe</span> <span class="punct">&quot;</span><span class="string">failing spec</span><span class="punct">&quot;</span> <span class="keyword">do</span>
374
+ <span class="linenum">32</span> <span class="ident">it</span> <span class="punct">&quot;</span><span class="string">fails</span><span class="punct">&quot;</span> <span class="keyword">do</span>
375
+ <span class="offending"><span class="linenum">33</span> <span class="ident">expect</span><span class="punct">(</span><span class="number">1</span><span class="punct">).</span><span class="ident">to</span> <span class="ident">eq</span><span class="punct">(</span><span class="number">2</span><span class="punct">)</span></span>
376
+ <span class="linenum">34</span> <span class="keyword">end</span>
377
+ <span class="linenum">35</span><span class="keyword">end</span></code></pre>
378
+ </div>
379
+ </dd>
380
+ </dl>
381
+ </div>
382
+ <div id="div_group_7" class="example_group passed">
383
+ <dl style="margin-left: 0px;">
384
+ <dt id="example_group_7" class="passed">a failing spec with odd backtraces</dt>
385
+ <script type="text/javascript">makeRed('div_group_7');</script>
386
+ <script type="text/javascript">makeRed('example_group_7');</script>
387
+ <script type="text/javascript">moveProgressBar('85.7');</script>
388
+ <dd class="example failed">
389
+ <span class="failed_spec_name">fails with a backtrace that has no file</span>
390
+ <span class="duration">n.nnnns</span>
391
+ <div class="failure" id="failure_3">
392
+ <div class="message"><pre>foo</pre></div>
393
+ <div class="backtrace"><pre>(erb):1:in `&amp;lt;main&amp;gt;&amp;#39;
394
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/resources/formatter_specs.rb&amp;amp;line=41&quot;&gt;./spec/rspec/core/resources/formatter_specs.rb:41&lt;/a&gt; :in `block (2 levels) in &amp;lt;top (required)&amp;gt;&amp;#39;
395
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=33&quot;&gt;./spec/support/sandboxed_mock_space.rb:33&lt;/a&gt; :in `block in run&amp;#39;
396
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=72&quot;&gt;./spec/support/sandboxed_mock_space.rb:72&lt;/a&gt; :in `sandboxed&amp;#39;
397
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=32&quot;&gt;./spec/support/sandboxed_mock_space.rb:32&lt;/a&gt; :in `run&amp;#39;
398
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=37&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:37&lt;/a&gt; :in `block (2 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
399
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (5 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
400
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `open&amp;#39;
401
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=59&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:59&lt;/a&gt; :in `block (4 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
402
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `chdir&amp;#39;
403
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb&amp;amp;line=58&quot;&gt;./spec/rspec/core/formatters/text_mate_formatter_spec.rb:58&lt;/a&gt; :in `block (3 levels) in &amp;lt;module:Formatters&amp;gt;&amp;#39;
404
+ &lt;a href=&quot;txmt://open?url=file:///Users/myron/code/rspec-dev/repos/rspec-core/spec/support/sandboxed_mock_space.rb&amp;amp;line=38&quot;&gt;./spec/support/sandboxed_mock_space.rb:38&lt;/a&gt; :in `sandboxed&amp;#39;</pre></div>
405
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
406
+ </div>
407
+ </dd>
408
+ <script type="text/javascript">moveProgressBar('100.0');</script>
409
+ <dd class="example failed">
410
+ <span class="failed_spec_name">fails with a backtrace containing an erb file</span>
411
+ <span class="duration">n.nnnns</span>
412
+ <div class="failure" id="failure_4">
413
+ <div class="message"><pre>Exception</pre></div>
414
+ <div class="backtrace"><pre>&lt;a href=&quot;txmt://open?url=file:///foo.html.erb&amp;amp;line=1&quot;&gt;/foo.html.erb:1&lt;/a&gt; :in `&amp;lt;main&amp;gt;&amp;#39;: foo (RuntimeError)</pre></div>
415
+ <pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
416
+ </div>
417
+ </dd>
418
+ </dl>
419
+ </div>
420
+ <script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>n.nnnn seconds</strong>";</script>
421
+ <script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
422
+ </div>
423
+ </div>
424
+ </body>
425
+ </html>
@@ -72,6 +72,7 @@ module RSpec
72
72
 
73
73
  expect(actual_doc.inner_html).to eq(expected_doc.inner_html)
74
74
 
75
+ expect(backtrace_lines).to_not be_empty
75
76
  backtrace_lines.each do |backtrace_line|
76
77
  expect(backtrace_line['href']).to include("txmt://open?url=")
77
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.7
4
+ version: 2.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2013-10-30 00:00:00.000000000 Z
13
+ date: 2014-02-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -312,6 +312,7 @@ files:
312
312
  - spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html
313
313
  - spec/rspec/core/formatters/text_mate_formatted-1.9.3.html
314
314
  - spec/rspec/core/formatters/text_mate_formatted-2.0.0.html
315
+ - spec/rspec/core/formatters/text_mate_formatted-2.1.0.html
315
316
  - spec/rspec/core/formatters/text_mate_formatter_spec.rb
316
317
  - spec/rspec/core/hooks_filtering_spec.rb
317
318
  - spec/rspec/core/hooks_spec.rb
@@ -375,7 +376,7 @@ rubyforge_project: rspec
375
376
  rubygems_version: 2.0.7
376
377
  signing_key:
377
378
  specification_version: 4
378
- summary: rspec-core-2.14.7
379
+ summary: rspec-core-2.14.8
379
380
  test_files:
380
381
  - features/Autotest.md
381
382
  - features/README.md
@@ -485,6 +486,7 @@ test_files:
485
486
  - spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html
486
487
  - spec/rspec/core/formatters/text_mate_formatted-1.9.3.html
487
488
  - spec/rspec/core/formatters/text_mate_formatted-2.0.0.html
489
+ - spec/rspec/core/formatters/text_mate_formatted-2.1.0.html
488
490
  - spec/rspec/core/formatters/text_mate_formatter_spec.rb
489
491
  - spec/rspec/core/hooks_filtering_spec.rb
490
492
  - spec/rspec/core/hooks_spec.rb