[dancer-users] Problem with dancer_response Dancer2::Test

Jeff Boes jeff at endpoint.com
Tue Jun 25 21:51:04 BST 2013


My test scripts are failing after a call like this:

my $response = dancer_response POST => '/private/affiliate/login.html', {
    params => { ... },
};

What's happening is that the response comes back with $response->status == 200, as expected, but $response->content
comes back as an uninterpolated layout file:

...
<body>
<% content %>
<div id="footer">
Powered by <a href="http://perldancer.org/">Dancer</a> <% dancer_version %>
</div>
...

I've tried walking through this in the Perl debugger, but I keep losing my way.

-- 
Jeff Boes <><
jeff at endpoint.com
269-408-0811


More information about the dancer-users mailing list