summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/rubygems/test_gem_specification.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 69c553f14b..28b4d5e72c 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -804,7 +804,10 @@ dependencies: []
end
full_path.taint
- loader = Thread.new { $SAFE = 1; Gem::Specification.load full_path }
+ loader = Thread.new do
+ $SAFE = 1
+ Gem::Specification.load full_path
+ end
spec = loader.value
@a2.files.clear