fixed broken rspec, may cause problems with jruby