Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 2184664

Browse files
committed
Explicitly require ruby_features where needed
1 parent a4833b4 commit 2184664

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

lib/rspec/support.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def self.define_optimized_require_for_rspec(lib, &require_relative)
1919

2020
define_optimized_require_for_rspec(:support) { |f| require_relative(f) }
2121
require_rspec_support "version"
22-
require_rspec_support "ruby_features"
2322

2423
# @api private
2524
KERNEL_METHOD_METHOD = ::Kernel.instance_method(:method)

lib/rspec/support/caller_filter.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
RSpec::Support.require_rspec_support "ruby_features"
2-
31
module RSpec
42
# Consistent implementation for "cleaning" the caller method to strip out
53
# non-rspec lines. This enables errors to be reported at the call site in

lib/rspec/support/directory_maker.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
RSpec::Support.require_rspec_support 'ruby_features'
2-
31
module RSpec
42
module Support
53
# @api private

lib/rspec/support/encoded_string.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
RSpec::Support.require_rspec_support "ruby_features"
2+
13
module RSpec
24
module Support
35
# @private

lib/rspec/support/spec/library_wide_checks.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'rspec/support/spec/shell_out'
2+
RSpec::Support.require_rspec_support 'ruby_features'
23

34
module RSpec
45
module Support

0 commit comments

Comments
 (0)