Skip to content

Commit

Permalink
fix test of test_mode, include 'ncurses'
Browse files Browse the repository at this point in the history
The tests all complete successfully in JRuby only if I make 
sure rubygems is loaded by adding:

  require 'rubygems'

To the test code.

Currently there is a bug in JRuby's processing of RUBYOPT

  http://jira.codehaus.org/browse/JRUBY-4060

so just setting:

  export RUBYOPT=rubygems

doesn't solve the problem.
  • Loading branch information
stepheneb committed Oct 6, 2009
1 parent 3063ac5 commit c593524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tc_highline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_lists
end

def test_mode
assert(%w[Win32API termios stty].include?(HighLine::CHARACTER_MODE))
assert(%w[Win32API termios ncurses stty].include?(HighLine::CHARACTER_MODE))
end

class NameClass
Expand Down

0 comments on commit c593524

Please sign in to comment.