Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better test example
  • Loading branch information
kraih committed Dec 14, 2011
1 parent e8bbc5f commit 344daf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Asset/File.pm
Expand Up @@ -194,15 +194,15 @@ Delete file automatically once it's not used anymore.
my $handle = $file->handle;
$file = $file->handle(IO::File->new);
Actual file handle, created on demand.
File handle, created on demand.
=head2 C<path>
my $path = $file->path;
$file = $file->path('/foo/bar/baz.txt');
Actual file path used to create C<handle>, can be automatically generated on
demand.
File path used to create C<handle>, can also be automatically generated if
necessary.
=head2 C<tmpdir>
Expand Down
3 changes: 3 additions & 0 deletions lib/Test/Mojo.pm
Expand Up @@ -398,6 +398,9 @@ L<Test::Mojo> implements the following attributes.
Current transaction, usually a L<Mojo::Transaction::HTTP> object.
# More specific tests
is $t->tx->res->json->{foo}, 'bar', 'right value';
=head2 C<ua>
my $ua = $t->ua;
Expand Down

0 comments on commit 344daf8

Please sign in to comment.