bin/probe in utils-0.0.40 vs bin/probe in utils-0.0.41
- old
+ new
@@ -46,9 +46,16 @@
when :rspec
if linenumber = $opt['n']
cmd "rspec", '-I', $config.probe.include_dirs_argument, '-l', linenumber,
*args, *testrunner_args
else
+ args = args.map do |a|
+ if Utils::Editor::FILE_LINENUMBER_REGEXP =~ a
+ $~.captures * ':'
+ else
+ a
+ end
+ end
cmd "rspec", '-I', $config.probe.include_dirs_argument, *args, *testrunner_args
end
when :'test-unit'
if testname = $opt['n']
cmd "testrb", '-I', $config.probe.include_dirs_argument, '-n', testname,