This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -464,9 +464,9 @@ def read_failed_lines
464
464
let ( :exception ) { instance_double ( Exception , :backtrace => [ "#{ __FILE__ } :#{ __LINE__ } " ] ) }
465
465
466
466
it "is handled gracefully" do
467
- with_safe_set_to_level_that_triggers_security_errors do
468
- expect { read_failed_lines } . not_to raise_error
469
- end
467
+ expect {
468
+ with_safe_set_to_level_that_triggers_security_errors { read_failed_lines }
469
+ } . not_to raise_error
470
470
end
471
471
end
472
472
Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ module Core
17
17
it "gracefully returns nil if run in a secure thread" do
18
18
# Ensure our call to `File.expand_path` is not cached as that is the insecure operation.
19
19
Metadata . instance_eval { @relative_path_regex = nil }
20
- with_safe_set_to_level_that_triggers_security_errors do
21
- value = Metadata . relative_path ( "." )
22
- # on some rubies, File.expand_path is not a security error, so accept "." as well
23
- expect ( [ nil , "." ] ) . to include ( value )
20
+
21
+ value = with_safe_set_to_level_that_triggers_security_errors do
22
+ Metadata . relative_path ( "." )
24
23
end
24
+
25
+ # on some rubies, File.expand_path is not a security error, so accept "." as well
26
+ expect ( [ nil , "." ] ) . to include ( value )
25
27
end
26
28
27
29
it 'should not transform directories beginning with the same prefix' do
You can’t perform that action at this time.
0 commit comments