RSpec autotest and bundler
The RSpec documentation says that you should require "autotest/bundler" so that autotest will automtatically prepend bundle exec when you run it. Sounds nice, but I've insta开发者_如何学编程ll autotest version 4.4.5 and it does not come with a bundler plugin.
How do I get the bundler plugin?
You need to require autotest first, then the bundler plugin will load fine:
require 'autotest'
require 'autotest/bundler'
Tested just now with autotest-4.4.6
.
(And you need bundler itself to be installed also):
gem install bundler
精彩评论