Permalink
Browse files

Adicionando Makefile.PL

Signed-off-by: Thiago Berlitz Rondon <thiago.rondon@gmail.com>
  • Loading branch information...
1 parent e92235f commit b5a5af140a457d29721f3cc9fed03a5970942315 @thiagorondon thiagorondon committed Aug 31, 2012
Showing with 25 additions and 2 deletions.
  1. +16 −0 site/Makefile.PL
  2. +9 −2 site/t/basic.t
View
16 site/Makefile.PL
@@ -0,0 +1,16 @@
+
+use strict;
+use warnings;
+use inc::Module::Install;
+
+name 'Site';
+all_from 'lib/Site.pm';
+
+requires 'Mojolicious' => 3.36;
+
+test_requires 'Test::More' => 0.42;
+
+license 'perl';
+
+WriteAll;
+
View
11 site/t/basic.t
@@ -1,9 +1,16 @@
use Mojo::Base -strict;
-use Test::More tests => 4;
+use Test::More tests => 25;
use Test::Mojo;
use_ok 'Site';
+my @pages_index = (
+ qw/FAQ quem_usa mitos diversao desenvolvimento lista
+ enc_sociais enc_tecnicos livros_e_resenhas CPAN sobre regionais/
+);
+
my $t = Test::Mojo->new('Site');
-$t->get_ok('/')->status_is(200)->content_like(qr/Mojolicious/i);
+
+map { $t->get_ok("/$_")->status_is(200) } @pages_index;
+

0 comments on commit b5a5af1

Please sign in to comment.