guides
guides copied to clipboard
"bundle exec rspec spec" vs rake spectask
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
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.
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
Where in the guide would you introduce this?
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.