Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Bread-Board CPAN distribution.

Report information
The Basics
Id: 76642
Status: rejected
Priority: 0/
Queue: Bread-Board

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: parameterized issues
Date: Tue, 17 Apr 2012 16:10:28 -0500
To: bugs-bread-board [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
I may have lied a little about the errors earlier (or gotten different errors while working through the issue )? or am finding others while writing the test... this test fails, but I think it should pass. 'parameterized-sugar' fails, but seems to be what one should be doing. I have also written a couple of similar tests that use ->add_sub_container without being a parameterized class that seem to work fine. -- Caleb Cushing http://xenoterracide.com

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #76642] parameterized issues
Date: Tue, 17 Apr 2012 17:56:23 -0400
To: bug-Bread-Board [...] rt.cpan.org
From: Stevan Little <stevan.little [...] iinteractive.com>
Caleb, So I think you are misunderstanding how parameterized containers work. You are not capturing the output of ->create in this line: $sc->create( conf => $conf ); The result of ->create is the container with the parameters applied, it does not do an in-place parameterization. Which explains why this line: is( $c->resolve( service => 'tsubc/test' ), 'foo', 'service is foo' ); fails to do what you expect. Basically you should be replacing those two lines with the following: my $p = $sc->create( conf => $conf ); is( $p->resolve( service => 'test' ), 'foo', 'service is foo' ); after which your tests all pass. - Stevan On Apr 17, 2012, at 5:18 PM, Caleb Cushing via RT wrote: Show quoted text
> Tue Apr 17 17:18:07 2012: Request 76642 was acted upon. > Transaction: Ticket created by XENO > Queue: Bread-Board > Subject: parameterized issues > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: xenoterracide@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=76642 > > > > I may have lied a little about the errors earlier (or gotten different > errors while working through the issue )? or am finding others while > writing the test... this test fails, but I think it should pass. > > 'parameterized-sugar' fails, but seems to be what one should be doing. > I have also written a couple of similar tests that use > ->add_sub_container without being a parameterized class that seem to > work fine. > > -- > Caleb Cushing > > http://xenoterracide.com > > <0001-test-for-using-parameterized-sugar.patch>
I think this can be closed.