如何在测试后将错误(如下所示)写入指定文件。
Failures:
1) Create should be successful
Failure/Error: unit_ship.should be_valid
expected valid? to return true, got false
# ./spec/models/unit_ship_spec.rbin `block (3 levels) in '
谢谢!
答案 0 :(得分:0)
试试这个:
$ rake spec > output.txt