我正在尝试开始使用 ruby 和 Watir-webdriver 进行一些测试自动化。
sudo apt-get install ruby rubygems
sudo gem install watir-webdriver
每当我安装 gem 时,我都会收到以下错误:
[/usr/lib/ruby/gems/1.8/specifications/selenium-webdriver-2.13.0.gemspec] isn't a Gem::Specification (NilClass instead).
ERROR: While executing gem ... (NoMethodError)
undefined method `spec' for nil:NilClass