diff options
Diffstat (limited to 'spec/rubyspec/library/readline/spec_helper.rb')
-rw-r--r-- | spec/rubyspec/library/readline/spec_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/rubyspec/library/readline/spec_helper.rb b/spec/rubyspec/library/readline/spec_helper.rb new file mode 100644 index 0000000000..b5ac16d22a --- /dev/null +++ b/spec/rubyspec/library/readline/spec_helper.rb @@ -0,0 +1,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 |