Skip to content

Commit

Permalink
Change readline for reline on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abinoam committed Jan 5, 2024
1 parent adf4f89 commit e26428c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def test_readline_mode
temp_stdin = Tempfile.new "temp_stdin"
temp_stdout = Tempfile.new "temp_stdout"

Readline.input = @input = File.open(temp_stdin.path, "w+")
Readline.output = @output = File.open(temp_stdout.path, "w+")
Reline.input = @input = File.open(temp_stdin.path, "w+")
Reline.output = @output = File.open(temp_stdout.path, "w+")

@terminal = HighLine.new(@input, @output)

Expand All @@ -52,16 +52,16 @@ def test_readline_mode

@input.close
@output.close
Readline.input = STDIN
Readline.output = STDOUT
Reline.input = STDIN
Reline.output = STDOUT
end

def test_readline_mode_with_limit_set
temp_stdin = Tempfile.new "temp_stdin"
temp_stdout = Tempfile.new "temp_stdout"

Readline.input = @input = File.open(temp_stdin.path, "w+")
Readline.output = @output = File.open(temp_stdout.path, "w+")
Reline.input = @input = File.open(temp_stdin.path, "w+")
Reline.output = @output = File.open(temp_stdout.path, "w+")

@terminal = HighLine.new(@input, @output)

Expand All @@ -81,8 +81,8 @@ def test_readline_mode_with_limit_set

@input.close
@output.close
Readline.input = STDIN
Readline.output = STDOUT
Reline.input = STDIN
Reline.output = STDOUT
end

def test_readline_on_non_echo_question_has_prompt
Expand Down

0 comments on commit e26428c

Please sign in to comment.