因此,通过阅读文档,我试图调用rspec的方式是: java -jar jruby-complete-1.6.7.jar -S spec -b -f d rspec_sanity_check.rb
我也尝试过rspec而不是spec。在每种情况下,我都会收到错误: jruby:没有这样的文件或目录 - spec(LoadError)
我不知道该怎么做。虽然文档说jruby-complete有rspec,但我似乎无法运行它。
我正在尝试使用jruby-complete来引导我们基于java的构建系统,所以我不必在每个新的vm上安装gem。
关于如何让jruby-complete rspec工作的任何想法?
答案 0 :(得分:0)
似乎可以正常使用1.6.7:
$ java -jar org.jruby/jruby-complete.jar -S rspec
Run filtered using {:full_description=>/(?-mix:Handler)/}
No examples were matched. Perhaps {:if=>#<Proc:0x8d00c6@/opt/local/rvm/gems/ree-1.8.7-2011.12/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:50>, :unless=>#<Proc:0x12dcb8c@/opt/local/rvm/gems/ree-1.8.7-2011.12/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:51>} is excluding everything?
Finished in 0.002 seconds
0 examples, 0 failures