开发者

How do I test a Rails Engine?

I'm writing an engine that interacts with the initialization process of the app. I need to simulate the app boot/start to check if some 开发者_StackOverflow社区initializers were loaded etc.

How do I test this Rails boot/start like a new application booting?


I always create a dummy Rails app in the test folder of my gems and test the gem through the app.

Same for engines, declare it with :path in the gemfile

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜