Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight improvements to the mocking docs #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Patrick Cronin <[email protected]> <[email protected]>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Here's an example:
publish($test_mq);

# This will die!
my @messages = $crixa->channel->queue(...)->check_for_messages;
my $message = $crixa->channel->queue(...)->check_for_message;
}

sub publish {
Expand Down Expand Up @@ -171,8 +171,8 @@ object in the `test_messages()` sub:

$test_mq->connect unless $test_mq->connected;

# This will die!
my @messages = $crixa->channel->queue(...)->check_for_messages;
# This will not die!
my $message = $crixa->channel->queue(...)->check_for_message;
}

Of course, this is a very artificial example, but in real code you may come
Expand Down
6 changes: 3 additions & 3 deletions lib/Crixa.pm
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Here's an example:
publish($test_mq);

# This will die!
my @messages = $crixa->channel->queue(...)->check_for_messages;
my $message = $crixa->channel->queue(...)->check_for_message;
}

sub publish {
Expand Down Expand Up @@ -272,8 +272,8 @@ object in the C<test_messages()> sub:

$test_mq->connect unless $test_mq->connected;

# This will die!
my @messages = $crixa->channel->queue(...)->check_for_messages;
# This will not die!
my $message = $crixa->channel->queue(...)->check_for_message;
}

Of course, this is a very artificial example, but in real code you may come
Expand Down