summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-04 18:12:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-04 18:12:08 +0900
commit0c3e6e86bdcb708d283dc57ed3c18ed1b40e4a17 (patch)
tree0dee2552dd13b5e47485ef23cd4dfc740bc38b07 /test
parentf19e048d244c709e2990ddbb0f986e8b51357bd2 (diff)
Suppress uninitialized instance variable warnings
Diffstat (limited to 'test')
-rw-r--r--test/erb/test_erb.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index 16ecf84105..d3e9b6c944 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -697,6 +697,7 @@ EOS
erb = ERB.allocate
erb.instance_variable_set(:@src, "")
erb.instance_variable_set(:@lineno, 1)
+ erb.instance_variable_set(:@_init, true)
erb = Marshal.load(Marshal.dump(erb))
assert_raise(ArgumentError) {erb.result}
end