Skip to content

Commit 6f99aeb

Browse files
committed
Fix test
1 parent 8f434ab commit 6f99aeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core_ext/name_error_extension_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ def test_to_s_does_not_make_disruptive_changes_to_error_message
3939

4040
def test_correctable_error_objects_are_dumpable
4141
error = begin
42-
File.open('/tmp/file').sizee
42+
File.open('./tmp/.keep').sizee
4343
rescue NoMethodError => e
4444
e
4545
end
4646

4747
error.to_s
4848

49-
assert_equal "undefined method `sizee' for #<File:/tmp/file>", Marshal.load(Marshal.dump(error)).original_message
49+
assert_equal "undefined method `sizee' for #<File:./tmp/.keep>", Marshal.load(Marshal.dump(error)).original_message
5050
end
5151
end
5252

0 commit comments

Comments
 (0)