From: Charles McGarvey Date: Fri, 15 Nov 2019 03:31:01 +0000 (-0700) Subject: compare canonical paths in test X-Git-Tag: v0.44~2 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9ee7195d654de8e00aead3550e17d7bc1a65c7ce;p=chaz%2Fgit-codeowners compare canonical paths in test --- diff --git a/t/app-codeowners-util.t b/t/app-codeowners-util.t index 2edbcc7..d44b06f 100644 --- a/t/app-codeowners-util.t +++ b/t/app-codeowners-util.t @@ -44,10 +44,10 @@ subtest 'git_toplevel' => sub { my $repodir =_setup_git_repo(); my $r = App::Codeowners::Util::git_toplevel($repodir); - is($r, $repodir, 'found toplevel directory from toplevel'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory from toplevel'); $r = App::Codeowners::Util::git_toplevel($repodir->child('a/b')); - is($r, $repodir, 'found toplevel directory'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory'); }; subtest 'find_nearest_codeowners' => sub {