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 trial

Ruby

rake spec does not work

For some reason, rake spec does not work for me. I am running Ruby 2.0.0-p645.

1 Answer

Raymond Sapida
Raymond Sapida
33,049 Points

Does it work if you run rspec spec or rake spec RAILS_ENV=test ?

It might have something to do with how rspec is loaded in your Gemfile. Ideally , it should be in the development and test block like this:

group :development, :test do
    gem 'rspec-rails'
end