Skip to content

Commit a97d1b2

Browse files
committed
Use our optimized require over a bare require.
Besides being faster (at least for environments with lots of directories on the load path), this avoids potentially loading the file twice, since rspec-mocks loads it in this fashion rather than with a bare require. Fixes rspec/rspec-support#244.
1 parent 0774de2 commit a97d1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/core/memoized_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rspec/support/reentrant_mutex'
1+
RSpec::Support.require_rspec_support 'reentrant_mutex'
22

33
module RSpec
44
module Core

0 commit comments

Comments
 (0)