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


#1

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 ----


#2

On Mon, Feb 2, 2009 at 12:17 AM, Randy H. removed_email_address@domain.invalid
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


#3

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 ----


#4

On Tue, Feb 10, 2009 at 3:23 PM, removed_email_address@domain.invalid wrote:

Done:

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

Great. Thx.