Run tests on JRuby.
Fixed RSpec deprecation warnings.
Merge pull request #77 from dblock/jruby-fix

Run tests on JRuby.