Skip to content

Commit c7f00c9

Browse files
committed
Fix newest rubocop complaint
1 parent 5e3af39 commit c7f00c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ group :uart do
1111
end
1212

1313
group :development do
14-
gem 'rubocop', '>= 1.37.1', require: false
14+
gem 'rubocop', '>= 1.38.0', require: false
1515
end

common/tests/console_io_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def expect_or_raise(io, string, timeout = TIMEOUT_SECONDS)
2727

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

3535
# A wrapper class that records characters that have been received from a PTY.
@@ -43,7 +43,7 @@ def initialize(pty, linebreak = "\n")
4343
def expect(pattern, timeout)
4444
result = @pty.expect(pattern, timeout)
4545
@log << if result.nil?
46-
@pty.unusedBuf
46+
@pty.unused_buf
4747
else
4848
result
4949
end

0 commit comments

Comments
 (0)