RJS Assertions
Posted on 26th April, by max in Code. Comments Off
I’ve been doing a little bit of refactoring and code improvement on some of my pet Rails projects. One of the things that I’d previously not found a great way of testing was Rails 1.1′s RJS templates, Ruby generated JavaScript, a key part of Rails’ AJAX support. I’ve posted previously about what I’ve been attempting, and you can see from the example test that it’s not particularly pretty:
Website: http://www.oobaloo.co.uk/articles/2006/04/25/rjs-assertions