阅读背景:

如何让cucumber和databasecleaner将种子数据保存在rails测试db中?

来源:互联网 

I have several database tables that have data that is for display purposes only, it never changes. It takes a long time to load all the seed data. I am using cucumber which seems to use the database_cleaner gem before each scenario to truncate all the tables in the test db. Is there a way to tell database_cleaner or cucumber to leave a few tables alone or am i stuck with loading my seed data before every scenario? I am running rails 2.3.8 cucumber 0.10.0 cucumber-rails 0.3.2 database_cleaner 0.50.0 Any help is much appreciated. TomI have several database tables that have data t




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

分享到: