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?

Cheers,
Nick
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to