File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ def self.run_all(reporter = nil)
55
55
# Execute a provided block with RSpec global objects (configuration,
56
56
# world, current example) reset. This is used to test specs with RSpec.
57
57
config . around ( :example ) do |example |
58
- # If there is an example-within-an-example, we want to make sure the inner
59
- # example does not get a reference to the outer example (the real spec) if
60
- # it calls something like `pending`.
61
58
RSpec ::Core ::Sandbox . sandboxed do |sandbox_config |
59
+ # If there is an example-within-an-example, we want to make sure the inner
60
+ # example does not get a reference to the outer example (the real spec) if
61
+ # it calls something like `pending`.
62
62
sandbox_config . before ( :context ) { RSpec . current_example = nil }
63
63
RSpec ::Rails . initialize_configuration ( sandbox_config )
64
64
example . run
You can’t perform that action at this time.
0 commit comments