0

测试后如何将错误(如下)写入指定文件。

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 '

谢谢!

4

1 回答 1

0

试试这个:

$ rake spec > output.txt
于 2012-07-23T07:44:34.427 回答