我可以在一个文件中运行所有测试:
rake test TEST=path/to/test_file.rb
但是,如果我只想在该文件中运行一个测试,我该怎么做?
我正在寻找与以下类似的功能:
rspec path/to/test_file.rb -l 25
我正在寻找与 rspec path/to/file.rb -l 25 类似的功能
使用Nick Quaranto 的 “m” gem,您可以说:
m spec/my_spec.rb:25