Re: [rspec-users] Routing error with webrat

2008-12-23 Thread Juanma Cervera
> I think this is a bug, but I don't know. Well, I see all more clear now. I thought it was a bug because I thought it was failing only when running the feature, and it worked without problem hitting the application with the browser. But this was not true. It worked because I had index.html in /p

Re: [rspec-users] Routing error with webrat

2008-12-23 Thread Juanma Cervera
Thanks Matt. You were right, I have modified routes.rb with mapping root url but I did't understand why this is needed. The create action in sessions controller is completely standar. The sentence that is causing the error redirect_back_or_default('/') is not using thr root_url. I think this i

Re: [rspec-users] Routing error with webrat

2008-12-23 Thread Matt Wynne
On 23 Dec 2008, at 09:04, Juanma Cervera wrote: Hello I am starting using cucumber with an app using restful_authentication. I am having an error that is driving me mad. I am using this step Given /^que he hecho login en la aplicación$/ do user = User.create!( :login => "mi_login",