阅读背景:

Rspec:如何创建调用和创建所有模拟的方法?

来源:互联网 

I am using Rspec to test my rails application and FactoryBot (new nome for factory girl) to create mocks. But in each file I need to call a lot of mocks. And it's almost the something, call some mocks, create an user, login and confirm this user. Can I create a method to call all this mocks, login and confirm the user? Then I just need to call this method.I am using Rspec to test my rails application a




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

分享到: