```ruby
require File.expand_path('../../../spec_helper', __FILE__)
unless MSpec.retrieve(:features).key?(:readline)
  begin
    require 'readline'
  rescue LoadError
  else
    MSpec.enable_feature :readline
  end
end
```

Disable readline specs if rb-readline is used
user
```ruby
require File.expand_path('../../../spec_helper', __FILE__)
unless MSpec.retrieve(:features).key?(:readline)
  begin
    require 'readline'
  rescue LoadError
  else
    # rb-readline behaves quite differently
    if $".grep(/\brbreadline\.rb$/).empty?
      MSpec.enable_feature :readline
    end
  end
end
```
assistant