I created a new RoR application, but whenever I run bundle install
(which installs RSpec along other gems) I get the following error:
Gem::Package::FormatError: no metadata found in /Users/petarpetrovic/.rvm/gems/ruby-1.9.3-p194/cache/selenium-webdriver-2.22.0.gem An error occured while installing selenium-webdriver (2.22.0), and Bundler cannot continue. Make sure that
gem install selenium-webdriver -v '2.22.0'
succeeds before bundling.
When I run gem install selenium-webdriver -v '2.22.0'
, I get the following error message:
ERROR: Error installing selenium-webdriver: invalid gem format for /Users/petarpetrovic/.rvm/gems/ruby-1.9.3-p194/cache/selenium-webdriver-2.22.0.gem
I tried manually removing the gem from cache folder and then rerun bundle install
but I still get the same error messages.
Any ideas how to fix this?