阅读背景:

在factory_girl中使用params从另一个特征中调用特征

来源:互联网 

I have a fairly chunky Factory Girl trait that accepts params and creates a has_many relation. I can call that trait as part of another trait to dry up traits or make it easier to bundles traits together when passing them to factories. What I don't know how to do is how to pass params to a trait when I'm calling it from another trait, or what to do instead. I have a fairly chunky Factory Girl trait that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: