Re: [rspec-users] request.params causing errors

2008-04-12 Thread Olivier Dupuis
It unfortunately access the wrong parameters. Instead of accessing the parameters from my url request, it access the parameters from my render_component. For example, my request is * http://localhost:4000/search/results?author=&keyword=&page=1&publisher=&title=agile * In that results view, I ren

Re: [rspec-users] request.params causing errors

2008-04-11 Thread David Chelimsky
On Apr 11, 2008, at 3:53 PM, Olivier Dupuis wrote: Sorry about that. Here goes... Spec: describe "/search/index" do it "should have option to login" do render "/search/index" response.should have_text(/Login/) end end Code for index.rhtml

Re: [rspec-users] request.params causing errors

2008-04-11 Thread Olivier Dupuis
Sorry about that. Here goes... Spec: *describe "/search/index" do it "should have option to login" do render "/search/index" response.should have_text(/Login/) end end* Code for index.rhtml * <%= render_component :controller => "com

Re: [rspec-users] request.params causing errors

2008-04-11 Thread David Chelimsky
Please post spec, code and error message. On Apr 11, 2008, at 3:21 PM, Olivier Dupuis wrote: > Hello, > > I have a rhtml file that goes through the request.params. One of my > test generates that file, but rspec pops an error saying : > > undefined method 'params' for ... > > I'm not sure what

[rspec-users] request.params causing errors

2008-04-11 Thread Olivier Dupuis
Hello, I have a rhtml file that goes through the request.params. One of my test generates that file, but rspec pops an error saying : undefined method 'params' for ... I'm not sure what to do with this, since request.params actually works with rails. Any idea? Thank you Olivier Dupuis __