X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F016-trigger.t;h=2925a8e6e8533b9f50ea291e7d7e33f4186e6780;hb=c0085d110254666a6c56c67c586f1b5c3d54d7db;hp=d31659960e8708b3d05705338348ad1fd4a7b0b4;hpb=b57f7bae1aa14a25dba1289796fa6fd3c4d9a3f2;p=gitmo%2FMouse.git diff --git a/t/016-trigger.t b/t/016-trigger.t index d316599..2925a8e 100644 --- a/t/016-trigger.t +++ b/t/016-trigger.t @@ -37,9 +37,9 @@ is(@trigger, 0, "trigger not called on read"); is($object->attr(50), 50, "setting the value"); is(@trigger, 1, "trigger was called on read"); -is_deeply(shift(@trigger), [$object, 50, $object->meta->get_attribute('attr')], "correct arguments to trigger in the accessor"); +is_deeply([splice @trigger], [[$object, 50, $object->meta->get_attribute('attr')]], "correct arguments to trigger in the accessor"); my $object2 = Class->new(attr => 100); is(@trigger, 1, "trigger was called on new with the attribute specified"); -is_deeply(shift(@trigger), [$object2, 100, $object2->meta->get_attribute('attr')], "correct arguments to trigger in the constructor"); +is_deeply([splice @trigger], [[$object2, 100, $object2->meta->get_attribute('attr')]], "correct arguments to trigger in the constructor");