rspec-core 2.99.2 → 3.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +14 -6
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +103 -191
- data/License.txt +1 -0
- data/README.md +4 -25
- data/features/Upgrade.md +2 -14
- data/features/command_line/dry_run.feature +29 -0
- data/features/command_line/example_name_option.feature +1 -1
- data/features/command_line/fail_fast.feature +26 -0
- data/features/command_line/format_option.feature +3 -3
- data/features/command_line/line_number_option.feature +16 -11
- data/features/command_line/order.feature +2 -3
- data/features/command_line/pattern_option.feature +3 -3
- data/features/command_line/randomization.feature +63 -0
- data/features/command_line/require_option.feature +2 -2
- data/features/command_line/ruby.feature +1 -1
- data/features/configuration/alias_example_to.feature +13 -22
- data/features/configuration/{backtrace_clean_patterns.feature → backtrace_exclusion_patterns.feature} +17 -14
- data/features/configuration/custom_settings.feature +11 -11
- data/features/configuration/overriding_global_ordering.feature +93 -0
- data/features/configuration/profile.feature +13 -13
- data/features/configuration/read_options_from_file.feature +7 -7
- data/features/example_groups/basic_structure.feature +1 -1
- data/features/example_groups/shared_context.feature +8 -8
- data/features/example_groups/shared_examples.feature +6 -14
- data/features/expectation_framework_integration/configure_expectation_framework.feature +27 -122
- data/features/filtering/exclusion_filters.feature +2 -5
- data/features/filtering/inclusion_filters.feature +1 -5
- data/features/formatters/json_formatter.feature +2 -2
- data/features/formatters/text_formatter.feature +4 -4
- data/features/helper_methods/arbitrary_methods.feature +2 -2
- data/features/helper_methods/let.feature +5 -5
- data/features/helper_methods/modules.feature +5 -8
- data/features/hooks/around_hooks.feature +2 -2
- data/features/hooks/before_and_after_hooks.feature +14 -14
- data/features/hooks/filtering.feature +12 -14
- data/features/metadata/described_class.feature +1 -1
- data/features/metadata/user_defined.feature +16 -29
- data/features/mock_framework_integration/use_flexmock.feature +1 -1
- data/features/mock_framework_integration/use_mocha.feature +1 -1
- data/features/mock_framework_integration/use_rr.feature +1 -1
- data/features/mock_framework_integration/use_rspec.feature +5 -5
- data/features/pending/pending_examples.feature +5 -5
- data/features/spec_files/arbitrary_file_suffix.feature +1 -1
- data/features/step_definitions/additional_cli_steps.rb +3 -3
- data/features/subject/explicit_subject.feature +8 -8
- data/features/subject/implicit_receiver.feature +29 -0
- data/features/subject/implicit_subject.feature +4 -4
- data/features/support/env.rb +10 -3
- data/features/support/require_expect_syntax_in_aruba_specs.rb +16 -0
- data/lib/rspec/core.rb +11 -48
- data/lib/rspec/core/backport_random.rb +302 -0
- data/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/lib/rspec/core/command_line.rb +7 -18
- data/lib/rspec/core/configuration.rb +202 -507
- data/lib/rspec/core/configuration_options.rb +17 -30
- data/lib/rspec/core/example.rb +29 -39
- data/lib/rspec/core/example_group.rb +166 -259
- data/lib/rspec/core/filter_manager.rb +30 -47
- data/lib/rspec/core/flat_map.rb +17 -0
- data/lib/rspec/core/formatters.rb +0 -138
- data/lib/rspec/core/formatters/base_formatter.rb +46 -1
- data/lib/rspec/core/formatters/base_text_formatter.rb +38 -61
- data/lib/rspec/core/formatters/deprecation_formatter.rb +21 -52
- data/lib/rspec/core/formatters/helpers.rb +0 -28
- data/lib/rspec/core/formatters/html_formatter.rb +1 -1
- data/lib/rspec/core/formatters/json_formatter.rb +38 -9
- data/lib/rspec/core/formatters/snippet_extractor.rb +14 -5
- data/lib/rspec/core/hooks.rb +55 -39
- data/lib/rspec/core/memoized_helpers.rb +17 -167
- data/lib/rspec/core/metadata.rb +16 -64
- data/lib/rspec/core/option_parser.rb +30 -39
- data/lib/rspec/core/ordering.rb +154 -0
- data/lib/rspec/core/pending.rb +12 -69
- data/lib/rspec/core/project_initializer.rb +12 -10
- data/lib/rspec/core/rake_task.rb +5 -108
- data/lib/rspec/core/reporter.rb +15 -18
- data/lib/rspec/core/runner.rb +16 -30
- data/lib/rspec/core/shared_context.rb +3 -5
- data/lib/rspec/core/shared_example_group.rb +3 -51
- data/lib/rspec/core/shared_example_group/collection.rb +1 -19
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/warnings.rb +22 -0
- data/lib/rspec/core/world.rb +12 -8
- data/spec/command_line/order_spec.rb +20 -23
- data/spec/rspec/core/backtrace_formatter_spec.rb +216 -0
- data/spec/rspec/core/command_line_spec.rb +32 -48
- data/spec/rspec/core/configuration_options_spec.rb +19 -50
- data/spec/rspec/core/configuration_spec.rb +142 -713
- data/spec/rspec/core/drb_command_line_spec.rb +2 -0
- data/spec/rspec/core/dsl_spec.rb +0 -1
- data/spec/rspec/core/example_group_spec.rb +192 -223
- data/spec/rspec/core/example_spec.rb +40 -16
- data/spec/rspec/core/filter_manager_spec.rb +2 -2
- data/spec/rspec/core/formatters/base_formatter_spec.rb +0 -41
- data/spec/rspec/core/formatters/base_text_formatter_spec.rb +5 -123
- data/spec/rspec/core/formatters/deprecation_formatter_spec.rb +2 -87
- data/spec/rspec/core/formatters/documentation_formatter_spec.rb +2 -3
- data/spec/rspec/core/formatters/{text_mate_formatted.html → html_formatted-1.8.7-jruby.html} +44 -25
- data/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +477 -0
- data/spec/rspec/core/formatters/{html_formatted.html → html_formatted-1.8.7.html} +42 -25
- data/spec/rspec/core/formatters/html_formatted-1.9.2.html +425 -0
- data/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +416 -0
- data/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +477 -0
- data/spec/rspec/core/formatters/html_formatted-1.9.3.html +419 -0
- data/spec/rspec/core/formatters/html_formatted-2.0.0.html +425 -0
- data/spec/rspec/core/formatters/html_formatter_spec.rb +21 -46
- data/spec/rspec/core/formatters/json_formatter_spec.rb +97 -8
- data/spec/rspec/core/hooks_filtering_spec.rb +5 -5
- data/spec/rspec/core/hooks_spec.rb +61 -47
- data/spec/rspec/core/memoized_helpers_spec.rb +20 -322
- data/spec/rspec/core/metadata_spec.rb +1 -24
- data/spec/rspec/core/option_parser_spec.rb +20 -62
- data/spec/rspec/core/ordering_spec.rb +102 -0
- data/spec/rspec/core/pending_example_spec.rb +0 -40
- data/spec/rspec/core/project_initializer_spec.rb +1 -25
- data/spec/rspec/core/rake_task_spec.rb +5 -72
- data/spec/rspec/core/random_spec.rb +47 -0
- data/spec/rspec/core/reporter_spec.rb +23 -48
- data/spec/rspec/core/runner_spec.rb +31 -39
- data/spec/rspec/core/shared_context_spec.rb +3 -15
- data/spec/rspec/core/shared_example_group/collection_spec.rb +4 -17
- data/spec/rspec/core/shared_example_group_spec.rb +12 -45
- data/spec/rspec/core/{deprecation_spec.rb → warnings_spec.rb} +3 -1
- data/spec/rspec/core_spec.rb +4 -21
- data/spec/spec_helper.rb +41 -5
- data/spec/support/helper_methods.rb +0 -29
- data/spec/support/sandboxed_mock_space.rb +0 -16
- data/spec/support/shared_example_groups.rb +7 -36
- data/spec/support/stderr_splitter.rb +36 -0
- metadata +163 -157
- metadata.gz.sig +1 -0
- data/exe/autospec +0 -13
- data/features/Autotest.md +0 -38
- data/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +0 -52
- data/features/subject/attribute_of_subject.feature +0 -124
- data/features/subject/one_liner_syntax.feature +0 -71
- data/lib/autotest/discover.rb +0 -10
- data/lib/autotest/rspec2.rb +0 -77
- data/lib/rspec/core/backtrace_cleaner.rb +0 -46
- data/lib/rspec/core/backward_compatibility.rb +0 -55
- data/lib/rspec/core/caller_filter.rb +0 -60
- data/lib/rspec/core/deprecated_mutable_array_proxy.rb +0 -32
- data/lib/rspec/core/deprecation.rb +0 -26
- data/lib/rspec/core/extensions/instance_eval_with_args.rb +0 -44
- data/lib/rspec/core/extensions/kernel.rb +0 -9
- data/lib/rspec/core/extensions/module_eval_with_args.rb +0 -38
- data/lib/rspec/core/extensions/ordered.rb +0 -27
- data/lib/rspec/core/formatters/console_codes.rb +0 -42
- data/lib/rspec/core/formatters/text_mate_formatter.rb +0 -34
- data/lib/rspec/core/metadata_hash_builder.rb +0 -97
- data/lib/rspec/core/minitest_assertions_adapter.rb +0 -28
- data/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/spec/autotest/discover_spec.rb +0 -49
- data/spec/autotest/failed_results_re_spec.rb +0 -45
- data/spec/autotest/rspec_spec.rb +0 -133
- data/spec/rspec/core/backtrace_cleaner_spec.rb +0 -68
- data/spec/rspec/core/caller_filter_spec.rb +0 -58
- data/spec/rspec/core/deprecations_spec.rb +0 -59
- data/spec/rspec/core/formatters/console_codes_spec.rb +0 -50
- data/spec/rspec/core/formatters/text_mate_formatter_spec.rb +0 -107
- data/spec/rspec/core/kernel_extensions_spec.rb +0 -9
- data/spec/rspec/core/pending_spec.rb +0 -27
- data/spec/support/silence_dsl_deprecations.rb +0 -32
|
@@ -3,7 +3,6 @@ require 'rspec/core/formatters/documentation_formatter'
|
|
|
3
3
|
|
|
4
4
|
module RSpec::Core::Formatters
|
|
5
5
|
describe DocumentationFormatter do
|
|
6
|
-
|
|
7
6
|
it "numbers the failures" do
|
|
8
7
|
|
|
9
8
|
examples = [
|
|
@@ -47,7 +46,7 @@ module RSpec::Core::Formatters
|
|
|
47
46
|
context2.example("nested example 2.1"){}
|
|
48
47
|
context2.example("nested example 2.2"){}
|
|
49
48
|
|
|
50
|
-
group.run(RSpec::Core::Reporter.new(formatter))
|
|
49
|
+
group.run(RSpec::Core::Reporter.new(RSpec.configuration, formatter))
|
|
51
50
|
|
|
52
51
|
expect(output.string).to eql("
|
|
53
52
|
root
|
|
@@ -75,7 +74,7 @@ root
|
|
|
75
74
|
context1.example(" example 2 ", :pending => true){}
|
|
76
75
|
context1.example(" example 3 ") { fail }
|
|
77
76
|
|
|
78
|
-
group.run(RSpec::Core::Reporter.new(formatter))
|
|
77
|
+
group.run(RSpec::Core::Reporter.new(RSpec.configuration, formatter))
|
|
79
78
|
|
|
80
79
|
expect(output.string).to eql("
|
|
81
80
|
root
|
data/spec/rspec/core/formatters/{text_mate_formatted.html → html_formatted-1.8.7-jruby.html}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang='en'>
|
|
2
3
|
<head>
|
|
3
4
|
<title>RSpec results</title>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
|
|
5
|
-
<meta http-equiv="Expires" content="-1"
|
|
6
|
-
<meta http-equiv="Pragma" content="no-cache"
|
|
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" />
|
|
7
8
|
<style type="text/css">
|
|
8
9
|
body {
|
|
9
10
|
margin: 0;
|
|
@@ -265,14 +266,14 @@ a {
|
|
|
265
266
|
</div>
|
|
266
267
|
|
|
267
268
|
<div id="display-filters">
|
|
268
|
-
<input id="passed_checkbox"
|
|
269
|
-
<input id="failed_checkbox"
|
|
270
|
-
<input id="pending_checkbox" name="pending_checkbox" type="checkbox" checked onchange="apply_filters()" value="3"
|
|
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>
|
|
271
272
|
</div>
|
|
272
273
|
|
|
273
274
|
<div id="summary">
|
|
274
|
-
<p id="totals"
|
|
275
|
-
<p id="duration"
|
|
275
|
+
<p id="totals"> </p>
|
|
276
|
+
<p id="duration"> </p>
|
|
276
277
|
</div>
|
|
277
278
|
</div>
|
|
278
279
|
|
|
@@ -315,11 +316,18 @@ a {
|
|
|
315
316
|
<span class="duration">n.nnnns</span>
|
|
316
317
|
<div class="failure" id="failure_1">
|
|
317
318
|
<div class="message"><pre>RSpec::Core::Pending::PendingExampleFixedError</pre></div>
|
|
318
|
-
<div class="backtrace"><pre
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
<div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:18:in `(root)'
|
|
320
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
321
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
322
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
323
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `generated_html'
|
|
324
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:73:in `Formatters'
|
|
325
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:72:in `Formatters'
|
|
326
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'</pre></div>
|
|
327
|
+
<pre class="ruby"><code><span class="linenum">16</span> context <span class="string"><span class="delimiter">"</span><span class="content">with content that would pass</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
328
|
+
<span class="linenum">17</span> it <span class="string"><span class="delimiter">"</span><span class="content">fails</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
329
|
+
<span class="offending"><span class="linenum">18</span> pending <span class="keyword">do</span></span>
|
|
330
|
+
<span class="linenum">19</span> expect(<span class="integer">1</span>).to eq(<span class="integer">1</span>)
|
|
323
331
|
<span class="linenum">20</span> <span class="keyword">end</span></code></pre>
|
|
324
332
|
</div>
|
|
325
333
|
</dd>
|
|
@@ -329,9 +337,7 @@ a {
|
|
|
329
337
|
<dl style="margin-left: 0px;">
|
|
330
338
|
<dt id="example_group_5" class="passed">passing spec</dt>
|
|
331
339
|
<script type="text/javascript">moveProgressBar('57.1');</script>
|
|
332
|
-
<dd class="example passed">
|
|
333
|
-
<span class="passed_spec_name">passes</span><span class="duration">n.nnnns</span>
|
|
334
|
-
</dd>
|
|
340
|
+
<dd class="example passed"><span class="passed_spec_name">passes</span><span class='duration'>n.nnnns</span></dd>
|
|
335
341
|
</dl>
|
|
336
342
|
</div>
|
|
337
343
|
<div id="div_group_6" class="example_group passed">
|
|
@@ -350,10 +356,17 @@ expected: 2
|
|
|
350
356
|
|
|
351
357
|
(compared using ==)
|
|
352
358
|
</pre></div>
|
|
353
|
-
<div class="backtrace"><pre
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
359
|
+
<div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:33:in `(root)'
|
|
360
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
361
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
362
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
363
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `generated_html'
|
|
364
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:73:in `Formatters'
|
|
365
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:72:in `Formatters'
|
|
366
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'</pre></div>
|
|
367
|
+
<pre class="ruby"><code><span class="linenum">31</span>describe <span class="string"><span class="delimiter">"</span><span class="content">failing spec</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
368
|
+
<span class="linenum">32</span> it <span class="string"><span class="delimiter">"</span><span class="content">fails</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
369
|
+
<span class="offending"><span class="linenum">33</span> expect(<span class="integer">1</span>).to eq(<span class="integer">2</span>)</span>
|
|
357
370
|
<span class="linenum">34</span> <span class="keyword">end</span>
|
|
358
371
|
<span class="linenum">35</span><span class="keyword">end</span></code></pre>
|
|
359
372
|
</div>
|
|
@@ -371,7 +384,15 @@ expected: 2
|
|
|
371
384
|
<span class="duration">n.nnnns</span>
|
|
372
385
|
<div class="failure" id="failure_3">
|
|
373
386
|
<div class="message"><pre>foo</pre></div>
|
|
374
|
-
<div class="backtrace"><pre
|
|
387
|
+
<div class="backtrace"><pre>(erb):1:in `result'
|
|
388
|
+
./spec/rspec/core/resources/formatter_specs.rb:41:in `(root)'
|
|
389
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
390
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
391
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
392
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `generated_html'
|
|
393
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:73:in `Formatters'
|
|
394
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:72:in `Formatters'
|
|
395
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'</pre></div>
|
|
375
396
|
<pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
|
|
376
397
|
</div>
|
|
377
398
|
</dd>
|
|
@@ -381,14 +402,12 @@ expected: 2
|
|
|
381
402
|
<span class="duration">n.nnnns</span>
|
|
382
403
|
<div class="failure" id="failure_4">
|
|
383
404
|
<div class="message"><pre>Exception</pre></div>
|
|
384
|
-
<div class="backtrace"><pre
|
|
405
|
+
<div class="backtrace"><pre>/foo.html.erb:1:in `<main>': foo (RuntimeError)</pre></div>
|
|
385
406
|
<pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
|
|
386
407
|
</div>
|
|
387
408
|
</dd>
|
|
388
409
|
</dl>
|
|
389
410
|
</div>
|
|
390
|
-
|
|
391
|
-
2 deprecation warnings total
|
|
392
411
|
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>n.nnnn seconds</strong>";</script>
|
|
393
412
|
<script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
|
|
394
413
|
</div>
|
|
@@ -0,0 +1,477 @@
|
|
|
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"> </p>
|
|
276
|
+
<p id="duration"> </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>./spec/rspec/core/resources/formatter_specs.rb:18:in `__script__'
|
|
320
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
321
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
322
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
323
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
324
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
325
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
326
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
327
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `__script__'
|
|
328
|
+
kernel/common/hash18.rb:195:in `fetch'
|
|
329
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
330
|
+
kernel/common/io.rb:217:in `open'
|
|
331
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
332
|
+
kernel/common/dir.rb:92:in `chdir'
|
|
333
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:58:in `__script__'
|
|
334
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
335
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
336
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
337
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'
|
|
338
|
+
kernel/common/eval18.rb:104:in `instance_exec'
|
|
339
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
340
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
341
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
342
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
343
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
344
|
+
kernel/loader.rb:702:in `run_at_exits'
|
|
345
|
+
kernel/loader.rb:722:in `epilogue'
|
|
346
|
+
kernel/loader.rb:855:in `main'</pre></div>
|
|
347
|
+
<pre class="ruby"><code><span class="linenum">16</span> context <span class="string"><span class="delimiter">"</span><span class="content">with content that would pass</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
348
|
+
<span class="linenum">17</span> it <span class="string"><span class="delimiter">"</span><span class="content">fails</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
349
|
+
<span class="offending"><span class="linenum">18</span> pending <span class="keyword">do</span></span>
|
|
350
|
+
<span class="linenum">19</span> expect(<span class="integer">1</span>).to eq(<span class="integer">1</span>)
|
|
351
|
+
<span class="linenum">20</span> <span class="keyword">end</span></code></pre>
|
|
352
|
+
</div>
|
|
353
|
+
</dd>
|
|
354
|
+
</dl>
|
|
355
|
+
</div>
|
|
356
|
+
<div id="div_group_5" class="example_group passed">
|
|
357
|
+
<dl style="margin-left: 0px;">
|
|
358
|
+
<dt id="example_group_5" class="passed">passing spec</dt>
|
|
359
|
+
<script type="text/javascript">moveProgressBar('57.1');</script>
|
|
360
|
+
<dd class="example passed"><span class="passed_spec_name">passes</span><span class='duration'>n.nnnns</span></dd>
|
|
361
|
+
</dl>
|
|
362
|
+
</div>
|
|
363
|
+
<div id="div_group_6" class="example_group passed">
|
|
364
|
+
<dl style="margin-left: 0px;">
|
|
365
|
+
<dt id="example_group_6" class="passed">failing spec</dt>
|
|
366
|
+
<script type="text/javascript">makeRed('div_group_6');</script>
|
|
367
|
+
<script type="text/javascript">makeRed('example_group_6');</script>
|
|
368
|
+
<script type="text/javascript">moveProgressBar('71.4');</script>
|
|
369
|
+
<dd class="example failed">
|
|
370
|
+
<span class="failed_spec_name">fails</span>
|
|
371
|
+
<span class="duration">n.nnnns</span>
|
|
372
|
+
<div class="failure" id="failure_2">
|
|
373
|
+
<div class="message"><pre>
|
|
374
|
+
expected: 2
|
|
375
|
+
got: 1
|
|
376
|
+
|
|
377
|
+
(compared using ==)
|
|
378
|
+
</pre></div>
|
|
379
|
+
<div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:33:in `__script__'
|
|
380
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
381
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
382
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
383
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
384
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
385
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
386
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `__script__'
|
|
387
|
+
kernel/common/hash18.rb:195:in `fetch'
|
|
388
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
389
|
+
kernel/common/io.rb:217:in `open'
|
|
390
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
391
|
+
kernel/common/dir.rb:92:in `chdir'
|
|
392
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:58:in `__script__'
|
|
393
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
394
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
395
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
396
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'
|
|
397
|
+
kernel/common/eval18.rb:104:in `instance_exec'
|
|
398
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
399
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
400
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
401
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
402
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
403
|
+
kernel/loader.rb:702:in `run_at_exits'
|
|
404
|
+
kernel/loader.rb:722:in `epilogue'
|
|
405
|
+
kernel/loader.rb:855:in `main'</pre></div>
|
|
406
|
+
<pre class="ruby"><code><span class="linenum">31</span>describe <span class="string"><span class="delimiter">"</span><span class="content">failing spec</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
407
|
+
<span class="linenum">32</span> it <span class="string"><span class="delimiter">"</span><span class="content">fails</span><span class="delimiter">"</span></span> <span class="keyword">do</span>
|
|
408
|
+
<span class="offending"><span class="linenum">33</span> expect(<span class="integer">1</span>).to eq(<span class="integer">2</span>)</span>
|
|
409
|
+
<span class="linenum">34</span> <span class="keyword">end</span>
|
|
410
|
+
<span class="linenum">35</span><span class="keyword">end</span></code></pre>
|
|
411
|
+
</div>
|
|
412
|
+
</dd>
|
|
413
|
+
</dl>
|
|
414
|
+
</div>
|
|
415
|
+
<div id="div_group_7" class="example_group passed">
|
|
416
|
+
<dl style="margin-left: 0px;">
|
|
417
|
+
<dt id="example_group_7" class="passed">a failing spec with odd backtraces</dt>
|
|
418
|
+
<script type="text/javascript">makeRed('div_group_7');</script>
|
|
419
|
+
<script type="text/javascript">makeRed('example_group_7');</script>
|
|
420
|
+
<script type="text/javascript">moveProgressBar('85.7');</script>
|
|
421
|
+
<dd class="example failed">
|
|
422
|
+
<span class="failed_spec_name">fails with a backtrace that has no file</span>
|
|
423
|
+
<span class="duration">n.nnnns</span>
|
|
424
|
+
<div class="failure" id="failure_3">
|
|
425
|
+
<div class="message"><pre>foo</pre></div>
|
|
426
|
+
<div class="backtrace"><pre>(erb):1:in `__script__'
|
|
427
|
+
kernel/common/block_environment.rb:57:in `call_on_instance'
|
|
428
|
+
kernel/common/eval.rb:73:in `eval'
|
|
429
|
+
/Users/bradley/.rvm/rubies/rbx-head-18mode/lib/18/erb.rb:719:in `result'
|
|
430
|
+
./spec/rspec/core/resources/formatter_specs.rb:41:in `__script__'
|
|
431
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
432
|
+
./spec/support/sandboxed_mock_space.rb:33:in `run'
|
|
433
|
+
./spec/support/sandboxed_mock_space.rb:72:in `sandboxed'
|
|
434
|
+
./spec/support/sandboxed_mock_space.rb:32:in `run'
|
|
435
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
436
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
437
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:37:in `__script__'
|
|
438
|
+
kernel/common/hash18.rb:195:in `fetch'
|
|
439
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
440
|
+
kernel/common/io.rb:217:in `open'
|
|
441
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:59:in `__script__'
|
|
442
|
+
kernel/common/dir.rb:92:in `chdir'
|
|
443
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:58:in `__script__'
|
|
444
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
445
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
446
|
+
kernel/common/eval18.rb:45:in `instance_eval'
|
|
447
|
+
./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'
|
|
448
|
+
kernel/common/eval18.rb:104:in `instance_exec'
|
|
449
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
450
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
451
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
452
|
+
kernel/bootstrap/array18.rb:18:in `map'
|
|
453
|
+
kernel/bootstrap/proc.rb:22:in `call'
|
|
454
|
+
kernel/loader.rb:702:in `run_at_exits'
|
|
455
|
+
kernel/loader.rb:722:in `epilogue'
|
|
456
|
+
kernel/loader.rb:855:in `main'</pre></div>
|
|
457
|
+
<pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
|
|
458
|
+
</div>
|
|
459
|
+
</dd>
|
|
460
|
+
<script type="text/javascript">moveProgressBar('100.0');</script>
|
|
461
|
+
<dd class="example failed">
|
|
462
|
+
<span class="failed_spec_name">fails with a backtrace containing an erb file</span>
|
|
463
|
+
<span class="duration">n.nnnns</span>
|
|
464
|
+
<div class="failure" id="failure_4">
|
|
465
|
+
<div class="message"><pre>Exception</pre></div>
|
|
466
|
+
<div class="backtrace"><pre>/foo.html.erb:1:in `<main>': foo (RuntimeError)</pre></div>
|
|
467
|
+
<pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for /foo.html.erb</span></code></pre>
|
|
468
|
+
</div>
|
|
469
|
+
</dd>
|
|
470
|
+
</dl>
|
|
471
|
+
</div>
|
|
472
|
+
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>n.nnnn seconds</strong>";</script>
|
|
473
|
+
<script type="text/javascript">document.getElementById('totals').innerHTML = "7 examples, 4 failures, 2 pending";</script>
|
|
474
|
+
</div>
|
|
475
|
+
</div>
|
|
476
|
+
</body>
|
|
477
|
+
</html>
|