ruby on rails - RoutingError problems with Webrat -


I am currently rewriting a website in the rail. I have written a model, which will replace the old static url Map for new people, and in the App Control Controller, Routing Adores calls a method that searches for a new URL that maps to the old. It works perfectly well in applicaion; If I travel it, it is redirected, but I can not get the cucumber / WebRat test written to get it because I always get an error like this.

  When I get the old Notisboard # features / step_definitions / redirection_steps.rb: 7 with no root matches "/noticeboard.htm" {: method = & gt ;: get} (Action Controller :: Routing error) (Aval): 2: In 'visit' ./tips/step_definitions/readirection_steps.rb: 8: in `/ ^ I try to go in old (. +) $ / 'Features / old_urls.feature: 26: In 'when I try to go to the old noticesboard'  

Obviously it is most important that the code actually works, and it should be correctly installed in the browser But I must also pass that test too. Is there any way I can work on this?

Have you ever solved this? There are lots of problems going on in Ibrat with visit method. I ran out of RAILS_ENV = development in my surroundings.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -