Add additional test case for new CodeOcean::File#read method

This commit is contained in:
Sebastian Serth
2022-09-02 17:52:24 +02:00
parent b6837e9539
commit 9050f02b7a
2 changed files with 21 additions and 2 deletions

View File

@ -58,7 +58,7 @@ module CodeOcean
def read
if native_file?
valid = Pathname(native_file.current_path).fnmatch? ::File.join(native_file.root, '**')
valid = Pathname(native_file.current_path).realpath.fnmatch? ::File.join(native_file.root, '**')
return nil unless valid
native_file.read