diff --git a/test/filemagic_test.rb b/test/filemagic_test.rb index 317b88e..bcf0c3b 100644 --- a/test/filemagic_test.rb +++ b/test/filemagic_test.rb @@ -26,7 +26,10 @@ def test_file if File.symlink?(path_to('pylink')) res = fm.file(path_to('pylink')) - assert_equal("symbolic link to `pyfile'", res.strip) + assert_equal(match_version( + 0 => "symbolic link to `pyfile'", + 5.22 => 'symbolic link to pyfile' + ), res.strip) end fm.close