Re: resource urls only work *after* a get() in controller spec

Okay, following up on this item. Would you believe a workaround of
(gasp) get :index, prior to expecting route-based URLs to work? (slaps
forehead). or do_action(), provided by the host example group (the more
concrete example group, I mean - what’s the right terminology there?).

I tried reproducing the stuff I saw being done in
action_controller/test_process.rb up to the point where the resource url
function started working, but when I did that (setting up the controller
name and action, essentially), I wasn’t getting it to work, but I ran
out of time budget for fooling with it.

If anyone thinks of an approach that could be more robust, I’d sure be
interested.

Until then,

Randy

----- Original Message ----

On Mon, Feb 2, 2009 at 12:17 AM, Randy H. [email protected]
wrote:

Okay, following up on this item. Would you believe a workaround of (gasp) get :index, prior to expecting route-based URLs to work? (slaps forehead). or do_action(), provided by the host example group (the more concrete example group, I mean - what’s the right terminology there?).

I tried reproducing the stuff I saw being done in action_controller/test_process.rb up to the point where the resource url function started working, but when I did that (setting up the controller name and action, essentially), I wasn’t getting it to work, but I ran out of time budget for fooling with it.

If anyone thinks of an approach that could be more robust, I’d sure be interested.

This sounds like a bug - can somebody familiar w/ this problem please
file a ticket at http://rspec.lighthouseapp.com?

Thanks,
David

Done:

http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/692-route-based-_url-or-_path-functions-dont-work-until-getpost-are-called

Randy

----- Original Message ----

On Tue, Feb 10, 2009 at 3:23 PM, [email protected] wrote:

Done:

Lighthouse - Beautifully Simple Issue Tracking

Great. Thx.