Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed Hypnotoad and Morbo test bug
  • Loading branch information
kraih committed Feb 6, 2012
1 parent d767348 commit 1d62d91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion script/hypnotoad
Expand Up @@ -6,7 +6,9 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');
# Testing
unshift @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib')
if $ENV{TEST_MORBO};

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojo::Server::Hypnotoad; 1';
Expand Down
2 changes: 0 additions & 2 deletions script/mojo
Expand Up @@ -6,8 +6,6 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojolicious::Commands; 1';
It looks like you don't have the Mojolicious framework installed.
Expand Down
4 changes: 3 additions & 1 deletion script/morbo
Expand Up @@ -6,7 +6,9 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');
# Testing
unshift @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib')
if $ENV{TEST_HYPNOTOAD};

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojo::Server::Morbo; 1';
Expand Down

0 comments on commit 1d62d91

Please sign in to comment.