File: autorun-load-configuration.patch

package info (click to toggle)
ruby-rspec 3.5.0c3e0m0s0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,312 kB
  • ctags: 4,788
  • sloc: ruby: 62,572; sh: 785; makefile: 100
file content (20 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: load configuration for rspec/autorun
Author: Christian Hofstaedtler <zeha@debian.org>
Origin: vendor
Bug: https://github.com/rspec/rspec-core/issues/1931
---

rspec/autorun itself apparently never touches the configuration, thus
the default of expose_dsl_globally isn't applied. This makes RSpec 3
backwards incompatible with 2.x.

--- a/rspec-core/lib/rspec/core/runner.rb
+++ b/rspec-core/lib/rspec/core/runner.rb
@@ -14,6 +14,7 @@
       #       the `ruby` command, and even then, the normal way to invoke
       #       this is by requiring `rspec/autorun`.
       def self.autorun
+        RSpec.configuration
         if autorun_disabled?
           RSpec.deprecate("Requiring `rspec/autorun` when running RSpec via the `rspec` command")
           return