Hi all,
I’m trying to test my search function:
get :live_search, :parameters => {:query_string => “test”}
This results in an URL such as:
http://localhost:3000/live_search?query_string=test
However, how can I simulate an URL such as:
http://localhost:3000/live_search?test
Thanks,
Harm de Laat
Kabisa ICT
Harm de Laat wrote:
I'm trying to test my search function:
get :live_search, :parameters => {:query_string => "test"}
This results in an URL such as:
http://localhost:3000/live_search?query_string=test
However, how can I simulate an URL such as:
http://localhost:3000/live_search?test
I don't think there's anything wrong with just passing it a string:
get "/live_search?test"
Chris