The list of JSpec's features is incredible, the DSL is beautiful (pretty close to RSpec's syntax), Ajax mocking works like charm (which you have to figure out with blue-ridge, or well, the included Screw.Unit and Smoke Mock combination more or less by yourself). And it is also great to use outside of Ruby on Rails projects. Something that is possible with blue-ridge as well, however, it leads to a quite of a hack if you want it to work well. And even though blue-ridge has received quite of a hype recently, I definitely recommend to check JSpec out. The spec runner opens all requested browsers for you, runs your tests in Rhino if you want to and runs your tests in all your browsers in background. And if you like BDD as much as I do, you will like its ability to do continuous integration, just like autotest.
Just one thing: While JSpec's installation is easy, it doesn't install Rhino for you. That should not be a problem though. Here's how you would do that on Mac OS X:
curl ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip > rhino.zip
unzip rhino.zip
mkdir ~/Library/Java
mkdir ~/Library/Java/Extensions
mv rhino1_7R2/js.jar ~/Library/Java/Extensions/
That should do it. Happy Testing!Labels: JavaScript
It has been a while since the
Often, I do not feel like agreeing with Linus Torvalds. This is not because he is not right, but because of the very opinionated, sometimes even stubborn way he brings his message(s) across. To me one of his most interesting exploits comes from one of the messages he posted to the Linux kernel mailing list back in 2001 (which is
This post in the