Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tests and args for command line tool

git-svn-id: http://5thplane.com/svn/perl/Alien-SeleniumRC@161 e5f7e8ef-ac07-0410-9fef-9965b2c2b5fc
  • Loading branch information...
commit 6a2fcb5df8029a020fee2a0e176efc78021c8994 1 parent 63cc9f3
lukec authored
Showing with 15 additions and 1 deletion.
  1. +1 −1  bin/selenium-rc
  2. +14 −0 t/script.t
View
2  bin/selenium-rc
@@ -4,4 +4,4 @@ use warnings;
use Alien::SeleniumRC;
-Alien::SeleniumRC::start();
+Alien::SeleniumRC::start("@ARGV"); # flatten the arg list
View
14 t/script.t
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+my $src = 'bin/selenium-rc';
+
+Script_compiles: {
+ like qx($^X -Ilib -c $src 2>&1), qr/OK/;
+}
+
+Arguments_passed_through: {
+ like qx($^X -Ilib $src -help 2>&1), qr/usage/i;
+}

0 comments on commit 6a2fcb5

Please sign in to comment.
Something went wrong with that request. Please try again.