Hi, ages ago I noticed a regression in 1.2 that I didn't get to fix  
at the time. The app stayed pre 1.2 until now for various other  
reasons, but is now being upgraded.

The problem is to do with using something like book_url(:id =>  
1, :anchor => 'foo') inside a test, e.g. in an assert_select on  
generated html. Rather than make /book/1#foo it's creating /book/1? 
anchor=foo.

I've figured out what's happening and created patches for trunk and  
1.2-stable, any chance these could be applied?

Longer term, it seems UrlWriter not using UrlRewriter.rewrite is not  
very DRY. If this patch gets applied (meaning I don't have to work on  
something to apply it when we deploy :) ) I'll look into DRYing that  
up. The problem seems to be UrlRewriter needs a request and params  
when it's created. It seems to me these could be 'faked' with an  
ostruct and a hash in UrlWriter.

Cheers,

Chris




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to