我正在阅读本文A Guide to Testing Rails Applications,我试图对某些模型实施系统测试。Rails系统测试生成器
但在指南中运行的发电机bin/rails generate system_test articles
,我遇到了以下错误:
Running via Spring preloader in process 16461 Expected string default value for '--helper'; got true (boolean) Expected string default value for '--assets'; got true (boolean) Could not find generator 'system_test'. Maybe you meant 'assets', 'scss:assets' or 'js:assets' Run 'rails generate --help' for more options.
我装了水豚,但我无法弄清楚如何得到这个工作。
关于如何让这个工作的任何线索?感谢提前:)
编辑:我运行轨道5.0.1
什么是您的rails版本?我很肯定你需要5.1才能工作。 –
跑轨5.0.1 – dhaliman