diff options
Diffstat (limited to 'spec/rubyspec/language/fixtures/defined.rb')
-rw-r--r-- | spec/rubyspec/language/fixtures/defined.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/rubyspec/language/fixtures/defined.rb b/spec/rubyspec/language/fixtures/defined.rb index ce330b486e..d26e553c4b 100644 --- a/spec/rubyspec/language/fixtures/defined.rb +++ b/spec/rubyspec/language/fixtures/defined.rb @@ -83,7 +83,9 @@ module DefinedSpecs end def global_variable_read - value = $defined_specs_global_variable_read + suppress_warning do + value = $defined_specs_global_variable_read + end defined? $defined_specs_global_variable_read end |