开发者

How do I test a Rails Engine?

开发者 https://www.devze.com 2023-03-07 16:17 出处:网络
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.

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

精彩评论

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