From c7f00c9395ceccc34c94bc91ffd82d7ebe0cbd8d Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Sun, 6 Nov 2022 22:21:05 +0100 Subject: [PATCH] Fix newest rubocop complaint --- Gemfile | 2 +- common/tests/console_io_test.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 48256484..7460e048 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/common/tests/console_io_test.rb b/common/tests/console_io_test.rb index cfb45a2b..002fb895 100644 --- a/common/tests/console_io_test.rb +++ b/common/tests/console_io_test.rb @@ -27,9 +27,9 @@ end # 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. @@ -43,7 +43,7 @@ class PTYLoggerWrapper def expect(pattern, timeout) result = @pty.expect(pattern, timeout) @log << if result.nil? - @pty.unusedBuf + @pty.unused_buf else result end