我正在使用警卫,所以从命令行运行特定测试对我来说并不方便,所以我猜想 rspec 将按照文件中的顺序运行所有测试,但 rspec 运行测试就像在这个例子中一样:
# ./spec/requests/projects_spec.rb:90:...
# ./spec/requests/projects_spec.rb:99:...
# ./spec/requests/projects_spec.rb:105:...
# ./spec/requests/projects_spec.rb:115:...
# ./spec/requests/projects_spec.rb:55:...
# ./spec/requests/projects_spec.rb:61:...
# ./spec/requests/projects_spec.rb:68:...
# ./spec/requests/projects_spec.rb:75:...
我已将这一行添加到 .rspec 文件中,--order default
但它没有改变任何内容。
rspec 的版本是 2.11.0
如何使 rspec 打印在文件中声明的测试?