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

Commit c65fd20

Browse files
committed
Remove old ruby workarounds
1 parent e753acc commit c65fd20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/rspec/core/metadata_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Core
1313
it "returns nil if passed an unparseable file:line combo" do
1414
expect(Metadata.relative_path("-e:1")).to be_nil
1515
end
16-
# I have no idea what line = line.sub(/\A([^:]+:\d+)$/, '\\1') is supposed to do
16+
1717
it "gracefully returns nil if run in a secure thread" do
1818
# Ensure our call to `File.expand_path` is not cached as that is the insecure operation.
1919
Metadata.instance_eval { @relative_path_regex = nil }

spec/support/helper_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module RSpecHelpers
2-
SAFE_LEVEL_THAT_TRIGGERS_SECURITY_ERRORS = RUBY_VERSION >= '2.3' ? 1 : 3
2+
SAFE_LEVEL_THAT_TRIGGERS_SECURITY_ERRORS = 1
33
SAFE_IS_GLOBAL_VARIABLE = RUBY_VERSION >= '2.6'
44

55
def relative_path(path)

0 commit comments

Comments
 (0)