"bundle exec rspec spec" vs rake spectask #4

Open
phiggins opened this Issue Oct 14, 2010 · 4 comments

3 participants

@phiggins

Instead of "bundle exec rspec spec", I think it's more user-friendly to use rspec's built-in rake SpecTask detailed here:
http://rspec.info/documentation/tools/rake.html

@radar
Owner

This is not an available-by-default Rake task (it seems to be rspec 1.3), but I admit I would prefer one because it's shorter to type.

@txus

In RSpec2, the Rake Task automatically uses bundle exec if the project uses Bundler.

http://github.com/rspec/rspec-core/blob/master/lib/rspec/core/rake_task.rb#L139

@radar
Owner

Where in the guide would you introduce this?

@phiggins

At the point you start with this "To run the rspec command for our bundle ..." when you begin talking about executing the specs. You've already introduced the Rakefile at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment