"bundle exec rspec" vs "rake spec"

I’m in the process of upgrading my rails app to rails 3 and I’m
getting different results from running the 2 commands above. The
“bundle exec rspec” runs my tests correctly, but when I run “rake
spec” it doesn’t seem to do anything. I get “0 examples, 0
failures”. This is on version 2.0.0.beta.17 of rspec. Any ideas on
what I’m doing wrong?

Thanks,
Jay

On Jul 19, 2010, at 7:51 AM, Jay wrote:

I’m in the process of upgrading my rails app to rails 3 and I’m
getting different results from running the 2 commands above. The
“bundle exec rspec” runs my tests correctly, but when I run “rake
spec” it doesn’t seem to do anything. I get “0 examples, 0
failures”. This is on version 2.0.0.beta.17 of rspec. Any ideas on
what I’m doing wrong?

Which beta version of rails are you on?

Make sure that you’ve removed lib/tasks/rspec.rake and that rspec-rails
listed in the :development group in your Gemfile.

HTH,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs