title: Rake aborted: could not find rspec
body: <p>I'm trying to work through the Ruby course from TestFirst.org. It requires you to navigate to the folder containing the exercise, run rake, and then correct any errors in the source code it uncovers. When I run rake in the folder for the first exercise it gives this error:</p>
  
  <pre><code>rake aborted!
  Could not find rspec (~&gt; 2) amongst [diff-lcs-1.2.5, rspec-3.0.0, rspec-core-3.0.0,
  rspec- expectations-3.0.0, rspec-mocks-3.0.1, rspec-support-3.0.0]
  /home/jayson/Desktop/learn_ruby/Rakefile:2:in `&lt;top (required)&gt;'
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Does this means it will only work with an old version of rspec or something else? Running rake with --trace gives me:</p>
  
  <pre><code>rake aborted!
  Could not find rspec (~&gt; 2) amongst [diff-lcs-1.2.5, rspec-3.0.0, 
  rspec-core-3.0.0, rspec-expectations-3.0.0, rspec-mocks-3.0.1, rspec-support-3.0.0]
  /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs'
  /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
  /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
  /home/jayson/Desktop/learn_ruby/Rakefile:2:in `&lt;top (required)&gt;'
  /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load'
  /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load_rakefile'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:589:in `raw_load_rakefile'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:89:in `block in load_rakefile'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:160:in `standard_exception_handling'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:88:in `load_rakefile'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:72:in `block in run'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:160:in `standard_exception_handling'
  /usr/lib/ruby/vendor_ruby/rake/application.rb:70:in `run'
  /usr/bin/rake:27:in `&lt;main&gt;'
  </code></pre>
  
  <p>How do I get the rake command to work properly? I'm using Terminal in Ubuntu 14.04, with Ruby 1.9.3, RubyGems 1,8.23, and Rspec 3.0.0. Thanks in advance.</p>