diff options
author | Yusuke Endoh <[email protected]> | 2024-02-15 13:00:32 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-02-15 18:42:31 +0900 |
commit | 8259f35adc67ab34bb521f0e8a298fb00629b958 (patch) | |
tree | b7ddb8c804334616362def40f380a29b3ffca6ea /spec/ruby/language/variables_spec.rb | |
parent | 25d74b9527cd525042ad0b612b794fa331d3a318 (diff) |
ruby-spec: Accept both a backtick and a single quote in error messages
Diffstat (limited to 'spec/ruby/language/variables_spec.rb')
-rw-r--r-- | spec/ruby/language/variables_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/language/variables_spec.rb b/spec/ruby/language/variables_spec.rb index 53d191b456..01be61a9dc 100644 --- a/spec/ruby/language/variables_spec.rb +++ b/spec/ruby/language/variables_spec.rb @@ -930,7 +930,7 @@ describe "Instance variables" do obj = Object.new def obj.foobar; a = $specs_uninitialized_global_variable; end - -> { obj.foobar }.should complain(/warning: global variable `\$specs_uninitialized_global_variable' not initialized/, verbose: true) + -> { obj.foobar }.should complain(/warning: global variable [`']\$specs_uninitialized_global_variable' not initialized/, verbose: true) end it "doesn't warn at lazy initialization" do |