--- trunk/t/02-frey-web.t 2008/07/17 17:04:21 154 +++ trunk/t/02-frey-web.t 2008/07/17 17:55:39 156 @@ -28,13 +28,13 @@ ok( my $o = Mock->new( debug => $debug ), 'new' ); diag $o->dump(2) if $debug; -ok( $o->add_js( '/static/lib/Joose.js' ), 'add_js' ); +ok( $o->add_head( '/static/lib/Joose.js' ), 'add_head js' ); -ok( my @js = $o->js, 'js' ); +ok( my @head = $o->head, 'js' ); -diag dump( @js ) if $debug; +diag dump( @head ) if $debug; -ok( $o->add_css( '/static/introspect.css' ), 'add_css' ); +ok( $o->add_head( '/static/introspect.css' ), 'add_head css' ); ok( my $html = $o->page( title => 'Test', body => '' ), 'page' ); diag $html if $debug; @@ -44,7 +44,7 @@ html_ok( $html, 'html lint' ); -ok( my $s = $o->add_head( 'static/app.css' ), 'add_head css' ); +ok( my $s = $o->add_head( 'static/frey.css' ), 'add_head css' ); diag $s if $debug; ok( $s = $o->add_head( 'static/js/ext-2.1/ext-all.js' ), 'add_head js' ); diag $s if $debug; @@ -54,5 +54,5 @@ cmp_ok( length( $html ), '<', length( $html2 ), 'bigger html' ); -like( $html2, qr{app\.css}, 'have css' ); +like( $html2, qr{frey\.css}, 'have css' ); like( $html2, qr{ext}, 'have js' );