Эх сурвалжийг харах

Fix Firefox Profile invalid file extension test

Daniel Gempesaw 11 жил өмнө
parent
commit
ad494803fe
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      t/Firefox-Profile.t

+ 2 - 2
t/Firefox-Profile.t

@@ -169,9 +169,9 @@ CROAKING: {
     my $profile = Selenium::Remote::Driver::Firefox::Profile->new;
     {
         eval {
-            $profile->add_extension('00-load.t');
+            $profile->add_extension('t/00-load.t');
         };
-        ok($@ =~ /xpi format/i, "caught invalid extension filetype");
+        cmp_ok($@, '=~', qr/xpi format/i, "caught invalid extension filetype");
     }
 
     {