浏览代码

Fix Firefox Profile invalid file extension test

Daniel Gempesaw 11 年之前
父节点
当前提交
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");
     }
 
     {