[rspec-users] Not seeing an RJS change

Nick Hoffman nick at deadorange.com
Mon Sep 29 22:15:36 EDT 2008

On 2008-09-29, at 19:33, Zach Dennis wrote:
> Having chained_replace_html is a hack to separate the regular
> expressions based on if you used Way #1 or Way #2.

Interesting. Thanks for that explanation.

> I have stopped relying on using RJS selectors to test against
> generated JavaScript. I have also stopped relying on RJS for the most
> part, and instead am doing a lot of UJS and JSON (thx Mark VanHolstyn
> for enlightening me on this). I'm not saying that you shouldn't do
> this, but that I've hit the problem you're facing, and I don't think
> using regular expressions from the bowels of Rails for asserting
> against generated javascript is the way to go,

I'll take a look into UJS and JSON. Were there any articles, blog  
posts, etc that you found particularly helpful?


More information about the rspec-users mailing list