comopasta Gr
2009-Nov-05 09:58 UTC
Cucumber cannot find a static page located in public folder
Hi, I recently started with Cucumber. I''m having an issue with a static page that I locate in the public folder. When an user registers to the site I send an activation code via email. That notification is show to the user by redirecting to a static page located in the public folder. If I start the server and register I get redirected properly to the static page. But when I run the same with cucumber it cannot find the static page. I have added the location into the features/paths.rb but it just fails. Is this a familiar problem for anyone? Can I add the static page to the routes so cucumber can find it? Thanks -- Posted via http://www.ruby-forum.com/.
comopasta Gr
2009-Nov-05 22:31 UTC
Re: Cucumber cannot find a static page located in public folder
Ok, so apparently I was being too rude by just adding the static pages to the public folder. I followed Mr Bates advice and created a controller to also server static content, now it is integrated into the app so cucumber can also find it easily. http://railscasts.com/episodes/117-semi-static-pages Cheers. -- Posted via http://www.ruby-forum.com/.
Maybe Matching Threads
- testing controllers using cucumber
- [cucumber][v0.2alpha]Where could I find API docs for custom formatters?
- uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
- Missing files with rails generate cucumber:install
- Intermittent Cucumber exception