]> Dogcows Code - chaz/git-codeowners/commitdiff
compare canonical paths in test
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 03:31:01 +0000 (20:31 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 15 Nov 2019 03:31:01 +0000 (20:31 -0700)
t/app-codeowners-util.t

index 2edbcc79122b0f855a341688ff37bc3b4856aaf8..d44b06ff02ad7b51f3c71f71493ad8960977fcd3 100644 (file)
@@ -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 {
This page took 0.025148 seconds and 4 git commands to generate.