开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜