Thanks. I had _some_ similar bits already in place, but yours is much
better put together for deciding when to redirect.
I've got a patch up at
http://github.com/flip/webrat/commit/4131b8da2fec44398fb170f4d88edc36ad9c9cac
that should do the trick for the redirects.
On Thu, Nov 20, 2008 at 10:28
On Thu, Nov 20, 2008 at 10:15 AM, Chris Flipse <[EMAIL PROTECTED]> wrote:
> I ended up patching webrat to avoid the post_via_redirect rails methods, and
> had to implement a version of follow_redirects that takes headers as an
> argument.
I've refactored the way that redirects are handled in Rails
Yes. I've actually had to patch webrat (behind a firewall, unfortunately)
to deal with this. Havn't had a chance to actually extract from the
firewall.
It's not actually Webrat's fault, at least from what I've managed to
uncover. The problem lies within the Rails integration tests; specifically
Don't know if this is related, but webrat 0.3.4 introduced a bug with
redirecting which I reported at
http://webrat.lighthouseapp.com/projects/10503/tickets/67
Wonder if your problem happens with webrat 0.2?
2008/11/20 aslak hellesoy <[EMAIL PROTECTED]>:
> On Thu, Nov 20, 2008 at 2:52 PM, kwe <
On Thu, Nov 20, 2008 at 2:52 PM, kwe <[EMAIL PROTECTED]> wrote:
> Yes, using latest webrat and cucumber, basic_auth is working for the
> initial steps, just not for the redirect that follows a successful
> 'page' creation i.e.
>
> redirect_to(admin_page_path(@page))
>
> In a Rails sense.
>
Sorry -
Yes, using latest webrat and cucumber, basic_auth is working for the
initial steps, just not for the redirect that follows a successful
'page' creation i.e.
redirect_to(admin_page_path(@page))
In a Rails sense.
On Nov 20, 11:11 am, "aslak hellesoy" <[EMAIL PROTECTED]>
wrote:
> On Thu, Nov 20, 2
On Thu, Nov 20, 2008 at 11:32 AM, kwe <[EMAIL PROTECTED]> wrote:
> Starting out with Cucumber and webrat and seem to be hitting a problem
> with a resource protected with http basic auth.
>
> i.e.
>
> The following feature..
>
> Feature: Manage Pages
> In order to add a reference pages
> As a adm