Skip to content

Commit

Permalink
ok TODO didn't work, lets try allowing redirects for the login
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Mar 15, 2013
1 parent f6b7e7f commit e716d1b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions t/locations.t
Expand Up @@ -10,6 +10,7 @@ use Test::Mojo;
my $home = $ENV{GALILEO_HOME} = File::Spec->rel2abs(File::Spec->catdir( qw/ t locations / ));

my $t = Galileo::DB::Deploy->create_test_object({ test => 1 });
$t->ua->max_redirects(2);
my $app = $t->app;

is( $app->home, $home, 'home dir detected from GALILEO_HOME' );
Expand All @@ -19,9 +20,6 @@ $t->get_ok('/test.html')
->text_is('body' => 'test text')
->or( sub { diag "'static' should be in @{ $app->static->paths }" } );

TODO: {
local $TODO = 'Not sure why this fails sometimes';

# login
$t->post_ok( '/login' => form => {from => '/page/home', username => 'admin', password => 'pass' } );

Expand Down Expand Up @@ -50,7 +48,5 @@ $t->websocket_ok('/files/list')
->json_message_is( '/' => { files => [], finished => 1 } )
->finish_ok;

}

done_testing();

0 comments on commit e716d1b

Please sign in to comment.