summaryrefslogtreecommitdiff
path: root/test/psych/test_psych.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_psych.rb')
-rw-r--r--test/psych/test_psych.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
index 508519b012..0e769274fd 100644
--- a/test/psych/test_psych.rb
+++ b/test/psych/test_psych.rb
@@ -145,8 +145,9 @@ class TestPsych < Psych::TestCase
end
def test_load_file_with_fallback
- t = Tempfile.create(['empty', 'yml'])
- assert_equal Hash.new, Psych.load_file(t.path, Hash.new)
+ Tempfile.create(['empty', 'yml']) {|t|
+ assert_equal Hash.new, Psych.load_file(t.path, Hash.new)
+ }
end
def test_parse_file