Re: [Catalyst] Safari, Sessions and Cookies

2012-08-13 Thread Mark A. Stratman
On Aug 11, 2012, at 9:56 AM, jeff robinson wrote:
 This hand off causes a change in the user agent that is
 reported to Catalyst, which in turn cause the Session to be reset.

Are you sure that's the reason?  If you haven't already you may want to turn on 
debugging and take a close look at your logs.  The session plugin outputs a 
message when it deletes the session data.

And if it is, in fact, an issue with the user agent, can you verify the 
configuration is being properly read?
Hopefully that gets you a step closer to figuring out what's going on.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] How to handle role checking using a MockObject for Catalyst contexts

2012-08-13 Thread Wallace Reis
On Aug 07, 2012, at 11:42 AM, Robert Rothenberg wrote:
 Personally, latterly, I've just been using Moose directly when I want to 
 mock a class:
 
 Moose::Meta::Class-create(….

And I love MX::Declare syntax sugar over this. ;)

Btw, there is another useful module out there:

https://metacpan.org/module/CatalystX::Test::MockContext

Cheers,

--
Wallace Reis | wreis
wall...@reis.me
http://www.about.me/wallacereis
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/