Skip to content

Commit 19f85ae

Browse files
committed
fixup! Move comment near the code it's explaining
1 parent 3169b18 commit 19f85ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/spec_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ def self.run_all(reporter = nil)
5555
# Execute a provided block with RSpec global objects (configuration,
5656
# world, current example) reset. This is used to test specs with RSpec.
5757
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`.
6158
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`.
6262
sandbox_config.before(:context) { RSpec.current_example = nil }
6363
RSpec::Rails.initialize_configuration(sandbox_config)
6464
example.run

0 commit comments

Comments
 (0)