summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/readline/spec_helper.rb
blob: b5ac16d22a3d20f7b7e1d718197fca5db910ca85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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