TwP/turn — Issue #78: Breaks `-n test_method_name` feature from Ruby
Author: leehambley
Created: 2012-02-29 15:50:59+00:00
State: open

`require 'turn/autorun'` breaks the feature in Ruby where you can do `ruby -Itest ./my_test.rb -n test_just_this_one_thing`.

Under the defaults, this would run only the method named `test_just_this_one_thing`, with `turn` loaded, however it runs all tests, all the time.

The ruby docuemntation for this feature is misleading, or I'm misunderstanding it:

```
ruby --help
... snip ...
-n assume 'while gets(); ... end' loop around your script
... snip ...
```

A note further to this is that when using bundler, turn appears to be badly behaved:

``` ruby
gem 'turn', :require => false
```

should make bundler skip loading this, but it doesn't - turn still loads, even if I do not explicitly require it anywhere. (it's possible, something in Rails is auto-loading it, but I really hope not.