Kaynağa Gözat

Simplify manual binary exception test construction

Daniel Gempesaw 10 yıl önce
ebeveyn
işleme
19bf7baee4
1 değiştirilmiş dosya ile 1 ekleme ve 8 silme
  1. 1 8
      t/CanStartBinary.t

+ 1 - 8
t/CanStartBinary.t

@@ -32,14 +32,7 @@ PHANTOMJS: {
 }
 
 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');
 
   SKIP: {