4 |
|
|
5 |
my $debug = @ARGV ? 1 : 0; |
my $debug = @ARGV ? 1 : 0; |
6 |
|
|
7 |
use Test::More tests => 4; |
use Test::More tests => 3; |
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
10 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
13 |
use_ok('App::RoomReservation::Reservation'); |
use_ok('App::RoomReservation::Reservation'); |
14 |
} |
} |
15 |
|
|
16 |
ok( my $o = App::RoomReservation::Reservation->new( request_url => '/', debug => $debug ), 'new' ); |
ok( my $o = App::RoomReservation::Reservation->new( request_url => '/', debug => $debug, |
17 |
ok( my $markup = $o->as_markup, 'as_markup' ); |
ime => 'Pero', |
18 |
|
prezime => 'Preić', |
19 |
|
institucija => 'Institut za istraživanje ruda i gubljenje vremena', |
20 |
|
zanimanje => 'čuvar hladovine', |
21 |
|
grad => 'Agram', |
22 |
|
drzava => 'Hrvatska', |
23 |
|
telefon => '01-555-555', |
24 |
|
mobitel => '095-555-555', |
25 |
|
email => 'pero@example.com', |
26 |
|
email_verify => 'pero@example.com', |
27 |
|
), 'new' ); |
28 |
|
ok( my $markup = $o->create_as_markup, 'create' ); |
29 |
diag $markup if $debug; |
diag $markup if $debug; |
30 |
like( $markup, qr/skeleton/, 'markup content' ); |
#like( $markup, qr/skeleton/, 'markup content' ); |
31 |
|
|