我的测试没有运行因为'mocha'丢失所以我添加到Gemfile
:
source "https://rubygems.org"
gem 'mocha'
然后我得到了:
Error installing mocha:
[14:47:00][Step 2/4] mocha requires metaclass (~> 0.0.1, runtime)
所以我添加到Gemfile
:
source "https://rubygems.org"
gem 'metaclass'
然后我得到:
Could not find a valid gem 'metaclass' (>= 0) in any repository
我的ruby
和os
:
# ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
# cat /etc/centos-release
CentOS release 6.6 (Final)
我错过了什么?