Developing gems and testing

后端 未结 4 2001
野的像风
野的像风 2021-01-31 17:45

I am new to developing Ruby gems, but I thought I\'d give it a try.

Recently checking out the latest episode on Railscasts (http://railscasts.com/episodes/245-new-gem-wi

4条回答
  •  离开以前
    2021-01-31 18:26

    You can reference the gem locally, but if you don't want to run bundle update each time you change the gem, you can just require the files using their full path, or by moving (or symlinking) your gem into /vendor.

    But to be honest, it sounds like you need to write some tests! ;) Manually testing each change you make is going to get tiresome and error-prone. If you're new to writing gems, have a look at the source of other popular gems and see how they're tested.

提交回复
热议问题