Skip to content

Commit

Permalink
Merge pull request #5 from slobo/master
Browse files Browse the repository at this point in the history
Fix more typos: map_passtrough => map_passthrough.
  • Loading branch information
tadam committed Nov 6, 2015
2 parents 2870986 + 67010c1 commit 06371bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/Test/Mock/LWP/Dispatch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Method returns index of your mapping. You can use it in C<unmap>.
Will pass through the $req_descr to actual LWP::UserAgent. See L<map> for $req_descr.
Example to let LWP::UserAgent handle all file:// urls: C<$mock_ua-E<gt>map_passtrough(qr{^file://});>
Example to let LWP::UserAgent handle all file:// urls: C<$mock_ua-E<gt>map_passthrough(qr{^file://});>
=cut

Expand Down Expand Up @@ -238,11 +238,11 @@ Deletes all mappings.
}

my %mock_methods = (
simple_request => \&simple_request,
map => \&map,
map_passtrough => \&map_passthrough,
unmap => \&unmap,
unmap_all => \&unmap_all,
simple_request => \&simple_request,
map => \&map,
map_passthrough => \&map_passthrough,
unmap => \&unmap,
unmap_all => \&unmap_all,
);

Test::MockObject->fake_module('LWP::UserAgent', %mock_methods);
Expand Down
2 changes: 1 addition & 1 deletion t/map_passtrough.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ my $url = "file://" . catfile($Bin, $Script);

is($ua->get($url)->code, 404, 'before map');

my $index1 = $ua->map_passtrough(qr{^file://});
my $index1 = $ua->map_passthrough(qr{^file://});
my $resp = $ua->get($url);
is($resp->code, 200, 'after map');
like($resp->content, qr/dummy_marker_of_this_file_123/,
Expand Down

0 comments on commit 06371bd

Please sign in to comment.