无法让rspec在rails中工作

时间:2012-08-11 20:13:59

标签: ruby-on-rails sqlite rspec

我能够设置我的rails项目(rails版本3.2.7)并运行rails generate rspec:install(rspec版本2.11.1)。它还在specs目录中构建了测试文件,但是当我运行“rspec”时,我开始出现一堆错误:

/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
...

我也试过“捆绑exec rspec”,然后错误是:

/var/lib/gems/1.9.1/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Aborted (core dumped)

有什么想法吗?

0 个答案:

没有答案