Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDJ Brinkerhoff
8,322 PointsSet up Git and Add Gems Problem
I'm going in circles trying to install rspec-rails and capybara
It keeps saying: "Could not find gem 'rspec-rails~>2.0 (>= 0) ruby' in the gems available on this machine.":
Dwight-Brinkerhoffs-MacBook-Air:odot sandslinger199$ bundle
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'rspec-rails~>3.0 (>= 0) ruby' in the gems available on this
machine.
Dwight-Brinkerhoffs-MacBook-Air:odot sandslinger199$ bundke
-bash: bundke: command not found
Dwight-Brinkerhoffs-MacBook-Air:odot sandslinger199$ bundle
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'rspec-rails~>2.0 (>= 0) ruby' in the gems available on this
machine.
Dwight-Brinkerhoffs-MacBook-Air:odot sandslinger199$ bin/rails generate rspec:install
Could not find gem 'capybara (~> 2.1.0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
Dwight-Brinkerhoffs-MacBook-Air:odot sandslinger199$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'rspec-rails~>2.0 (>= 0) ruby' in the gems available on this
machine.
2 Answers
Deoward Kotze
14,604 PointsYou need to specify the gem in your gemfile --> gem "guard-rspec", "2.0.0" gem "capybara" , "2.1.0"
Then install the gems by doing --> bundle install
DJ Brinkerhoff
8,322 PointsAh, missed that step.