Skip to content
Browse files

Looked at the param names again. Shuddered.

  • Loading branch information...
1 parent 237566a commit bad75eb6476de97c261732370b454a9a0e44e3c7 @pdcawley committed Oct 16, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/Announcements/Subscribing.pm
  2. +3 −3 t/subscriber-helper.t
View
2 lib/Announcements/Subscribing.pm
@@ -3,7 +3,7 @@ use Moose::Role;
sub subscribe {
my($self, %params) = @_;
- $params{sent_by}->add_subscription(
+ $params{from}->add_subscription(
when => $params{to},
do => $params{do},
for => $self,
View
6 t/subscriber-helper.t
@@ -30,9 +30,9 @@ test "Subscribing using the subscriber helper methods sets 'for'" => sub {
my $button = Button->new;
$self->subscribe(
- to => 'PushedButton',
- sent_by => $button,
- do => sub {
+ to => 'PushedButton',
+ from => $button,
+ do => sub {
my($announcement, $announcer, $subscription) = @_;
is $subscription->subscriber, $self
},

0 comments on commit bad75eb

Please sign in to comment.
Something went wrong with that request. Please try again.