Actually, in rspec case, it sends the current line in the command built, e.g. `rspec spec/xpto_spec.rb:24`. If this line is inside a `context`/`describe` but outside a test the default action is run all `context`.

In minitest/test_unit it searchs the nearest test to send in the command, e.g. `ruby -Itest test/xpto_test.rb -n/test_test_name/`

I don't know if I was clear enough, if not send me an email or call me on hangouts. :smile_cat: