Hi,

Its maybe not related to rspec but I can't figure out how to fix it.  Here
is,


In my helper(Rails) I got the piece of code :


    sortie += link_to(entete_colonne + " " + image_sens_tri,*
client_journal_activites_path*(:ordre_tri => nom_colonne, :sens_tri =>
params[:sens_tri],:filtre => params[:filtre]))


When I run the spec on this I got the following error. Looks like rspec does
not like extra params on the generated route url, I thought it was clean to
do that.



ActionController::RoutingError: client_journal_activites_url failed to
generate from {:controller=>"journal_activites", :action=>"index",
:filtre=>"XX", :ordre_tri=>"DATE", :sens_tri=>"DESC"}, expected:
{:controller=>"journal_activites", :action=>"index"}, diff: {:filtre=>"XX",
:ordre_tri=>"DATE", :sens_tri=>"DESC"}

(eval):20:in `client_journal_activites_path'

C:/WorkspacesSVN/Cautionnement/app/helpers/journal_activites_helper.rb:43:in
`afficher_entete_colonne_activites'

C:/WorkspacesSVN/Cautionnement/spec/helpers/journal_activites_helper_spec.rb:34:in
`send'

C:/WorkspacesSVN/Cautionnement/spec/helpers/journal_activites_helper_spec.rb:34

C:/WorkspacesSVN/Cautionnement/script/spec:10

C:\ruby\bin/rdebug-ide:19:in `load'


Any suggestions?


RĂ©mi
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to