Skip to content

Commit

Permalink
Correspond to refactored RubyLex
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Jan 12, 2023
1 parent 2a3ac10 commit 72a2318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/reline/yamatanooroti/termination_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def terminated?(code)

class AutoIndent < RubyLex
def initialize
context = Struct.new("MockIRBContext", :auto_indent_mode, :workspace, :local_variables).new(true, nil, [])
set_input(self, context: context)
set_auto_indent(context)
@context = Struct.new("MockIRBContext", :auto_indent_mode, :workspace, :local_variables).new(true, nil, [])
set_input(self)
set_auto_indent
end

def auto_indent(&block)
Expand Down

0 comments on commit 72a2318

Please sign in to comment.