Skip to content

Commit

Permalink
split some big test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 22, 2011
1 parent f3d56de commit 84129a3
Show file tree
Hide file tree
Showing 13 changed files with 1,759 additions and 1,721 deletions.
5 changes: 0 additions & 5 deletions lib/Mojo/Content.pm
Expand Up @@ -75,8 +75,6 @@ sub clone {
return $self->new(headers => $self->headers->clone);
}

# "Aren't we forgetting the true meaning of Christmas?
# You know, the birth of Santa."
sub generate_body_chunk {
my ($self, $offset) = @_;

Expand Down Expand Up @@ -249,9 +247,6 @@ sub parse_body_once {
return $self;
}

# "Quick Smithers. Bring the mind eraser device!
# You mean the revolver, sir?
# Precisely."
sub parse_until_body {
my ($self, $chunk) = @_;

Expand Down
1 change: 0 additions & 1 deletion lib/Mojolicious/Plugins.pm
Expand Up @@ -49,7 +49,6 @@ sub load_plugin {
die qq/Plugin "$name" missing, maybe you need to install it?\n/;
}

# "Let's see how crazy I am now, Nixon. The correct answer is very."
sub register_plugin {
my $self = shift;
my $name = shift;
Expand Down
13 changes: 7 additions & 6 deletions t/mojo/app.t
Expand Up @@ -7,18 +7,19 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

use Test::More tests => 47;
use Test::More tests => 44;

use_ok 'Mojo';
use_ok 'Mojo::HelloWorld';

# "I was so bored I cut the pony tail off the guy in front of us.
# Look at me, I'm a grad student.
# I'm 30 years old and I made $600 last year.
# Bart, don't make fun of grad students.
# They've just made a terrible life choice."
use_ok 'Mojo';
use_ok 'Mojo::IOLoop';
use_ok 'Mojo::HelloWorld';
use_ok 'Mojo::Transaction::HTTP';
use_ok 'Mojo::UserAgent';
use Mojo::IOLoop;
use Mojo::Transaction::HTTP;
use Mojo::UserAgent;

# Logger
my $logger = Mojo::Log->new;
Expand Down
9 changes: 5 additions & 4 deletions t/mojo/cookiejar.t
@@ -1,14 +1,15 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 89;
use Test::More tests => 87;

use_ok 'Mojo::CookieJar';

# "Hello, my name is Mr. Burns. I believe you have a letter for me.
# Okay Mr. Burns, what’s your first name.
# I don’t know."
use_ok 'Mojo::CookieJar';
use_ok 'Mojo::Cookie::Response';
use_ok 'Mojo::URL';
use Mojo::Cookie::Response;
use Mojo::URL;

# Session cookie
my $jar = Mojo::CookieJar->new;
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/dom.t
Expand Up @@ -3,13 +3,13 @@ use Mojo::Base -strict;

use utf8;

use Test::More tests => 698;
use Test::More tests => 697;

# "Homer gave me a kidney: it wasn't his, I didn't need it,
# and it came postage due- but I appreciated the gesture!"
use_ok 'Mojo::DOM';
use_ok 'ojo';

use ojo;
use Mojo::Util 'encode';

# ojo
Expand Down

0 comments on commit 84129a3

Please sign in to comment.