Skip to content

Instantly share code, notes, and snippets.

@gnusosa
Created June 3, 2011 05:17
Show Gist options
  • Save gnusosa/1005912 to your computer and use it in GitHub Desktop.
Save gnusosa/1005912 to your computer and use it in GitHub Desktop.
Test for the Dancer::Script->new.
use Test::More tests => 3;
use Dancer::Script;
my $script = Dancer::Script->new(appname => 'Hello', path => '.', check_version => '1');
isa_ok( $script, 'Dancer::Script', );
can_ok( $script, 'parse_opts', 'validate_app_name', );
can_ok( $script, '_set_application_path', '_set_script_path', '_set_lib_path', );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment