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