Skip to content

Commit

Permalink
Fix newest rubocop complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-richter committed Nov 6, 2022
1 parent 5e3af39 commit c7f00c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ group :uart do
end

group :development do
gem 'rubocop', '>= 1.37.1', require: false
gem 'rubocop', '>= 1.38.0', require: false
end
8 changes: 4 additions & 4 deletions common/tests/console_io_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def expect_or_raise(io, string, timeout = TIMEOUT_SECONDS)

# Monkey-patch IO so that we get access to the buffer of a previously unsuccessful expect().
class IO
# rubocop:disable Naming:MethodName
attr_reader :unusedBuf
# rubocop:enable Naming:MethodName
def unused_buf
@unusedBuf
end
end

# A wrapper class that records characters that have been received from a PTY.
Expand All @@ -43,7 +43,7 @@ def initialize(pty, linebreak = "\n")
def expect(pattern, timeout)
result = @pty.expect(pattern, timeout)
@log << if result.nil?
@pty.unusedBuf
@pty.unused_buf
else
result
end
Expand Down

0 comments on commit c7f00c9

Please sign in to comment.