diff options
Diffstat (limited to 't/006_runner.t')
-rw-r--r-- | t/006_runner.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/006_runner.t b/t/006_runner.t new file mode 100644 index 0000000..b95abb2 --- /dev/null +++ b/t/006_runner.t @@ -0,0 +1,24 @@ + +use strict; +use warnings; +use Test::Most tests => 3; +use Data::Dumper; + +use jitterbug::Runner; + +{ + local @ARGV = qw(-c t/data/test.yml); + my $b = jitterbug::Runner->new(); + + isa_ok($b,'jitterbug::Runner'); + can_ok($b,qw/new run run_task sleep/); + +} + +{ + local @ARGV = qw(-c blarg.yml); + throws_ok (sub { + my $b = jitterbug::Runner->new('blarg.yml'); + }, qr/Does not exist/i, 'nonexistent yaml file throws error'); +} + |