瀏覽代碼

Simplify manual binary exception test construction

Daniel Gempesaw 10 年之前
父節點
當前提交
19bf7baee4
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      t/CanStartBinary.t

+ 1 - 8
t/CanStartBinary.t

@@ -32,14 +32,7 @@ PHANTOMJS: {
 }
 }
 
 
 MANUAL: {
 MANUAL: {
-    package BadBinary {
-        use Moo;
-        with 'Selenium::CanStartBinary';
-        has 'binary' => ( is => 'ro' );
-        1
-    };
-
-    ok( exception { BadBinary->new( binary => '/not/executable') },
+    ok( exception { PhantomJS->new( binary => '/bad/executable') },
         'we throw if the user specified binary is not executable');
         'we throw if the user specified binary is not executable');
 
 
   SKIP: {
   SKIP: {