4 |
|
|
5 |
my $debug = @ARGV ? 1 : 0; |
my $debug = @ARGV ? 1 : 0; |
6 |
|
|
7 |
use Test::More tests => 4; |
use Test::More tests => 5; |
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
10 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
17 |
package Mock; |
package Mock; |
18 |
use Moose; |
use Moose; |
19 |
extends 'Frey'; |
extends 'Frey'; |
20 |
|
with 'Frey::Web'; |
21 |
with 'Frey::jQuery'; |
with 'Frey::jQuery'; |
22 |
} |
} |
23 |
|
|
24 |
ok( my $o = Mock->new( debug => $debug ), 'new' ); |
ok( my $o = Mock->new( debug => $debug ), 'new' ); |
25 |
ok( my $markup = $o->as_markup, 'as_markup' ); |
ok( $o->depends, 'depends' ); |
26 |
diag $markup if $debug; |
ok( my $head = join("\n", $o->head ), 'head' ); |
27 |
like( $markup, qr/skeleton/, 'markup content' ); |
diag $o->dump( $head ) if $debug; |
28 |
|
like( $head, qr/jquery/, 'head has jquery content' ); |
29 |
|
|