我在大学里开发了一些东西,保存到我的 Dropbox 打算继续在家里。这是迎接我的消息:
$ spec graph_spec.rb
/Users/amadan/.rvm/gems/ruby-1.9.2-rc1/gems/PriorityQueue-0.1.2/ext/priority_queue/CPriorityQueue.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
然而,
$ `which spec` graph_spec.rb
...........................................................................
Finished in 0.046973 seconds
75 examples, 0 failures
这到底是怎么回事?
供参考:
$ which spec
/Users/amadan/.rvm/gems/ruby-1.9.2-rc1/bin/spec
更新:我刚刚注意到那里的 1.8.7 ......它是如何到达那里的?规范文件的顶部说:
$ head `which spec`
#!/Users/amadan/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'rspec' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
它在哪里说“运行1.8.7”?!?