Skip to content

Commit a48c11b

Browse files
authored
test: refactor code (#5013)
**Which issue(s) this PR fixes**: * For #5012 **What this PR does / why we need it**: Refactor code for #5012 **Docs Changes**: Not needed. **Release Note**: Not needed because this is new code for v1.19. Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
1 parent 1bc8a75 commit a48c11b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/plugin/test_buf_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def write(chunk)
2323

2424
class DummyErrorOutputPlugin < DummyOutputPlugin
2525
def register_write(&block)
26-
instance_variable_set("@write", block)
26+
instance_variable_set(:@write, block)
2727
end
2828

2929
def initialize

test/plugin/test_buf_file_single.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def write(chunk)
4040

4141
class DummyErrorOutputPlugin < DummyOutputPlugin
4242
def register_write(&block)
43-
instance_variable_set("@write", block)
43+
instance_variable_set(:@write, block)
4444
end
4545

4646
def initialize

0 commit comments

Comments
 (0)