rspec --seed=123 spec/spec_helper.rb
I, [2015-12-14T17:13:54.178156 #11515] INFO -- : Not reporting to Code
Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set.
No examples found.
Finished in 0.00015 seconds (files took 0.6297 seconds to load)
0 examples, 0 failures
Randomized with seed 123
如何解决?我希望运行测试我的策略和我的spec文件无法访问。
答案 0 :(得分:2)
您只执行spec_helper.rb
文件,该文件通常不包含测试示例。
尝试运行rspec --seed=123 spec/
以运行*_spec.rb
目录中的所有spec/
个文件。