RSpec’ing your rescue_from
You might remember from the previous post, we started using rescue_from in our Ajax actions. Now, how the heck do you test those suckers?
SQLite database reloading
In development, it is not uncommon to want to “start over” in your development database, but… not completely. Sometimes, you have useful data, and you don’t want to blow it all away. Here is a handy set of rake tasks to reset/reload your SQLite database:
jQuery.globalEval instead of eval