How to load a spec_helper.rb automatically in RSpec 2

后端 未结 2 864
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 02:20

When developing gems in Ruby, I almost always need a file in which I can configure RSpec to my needs and maybe before doing that, require some helper modules which should be ava

2条回答
  •  孤街浪徒
    2021-01-31 02:47

    The --require spec_helper line is automatically added to the .rspec file for RSpec 3.0 when you do rspec --init.

提交回复
热议问题