diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-18 21:56:55 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-18 21:56:55 +0000 |
| commit | 3ee0648dc7a5465b2cbadd7246fc2edbd676d759 (patch) | |
| tree | 02b758f59e65fa4ea9b6861956807ba49be638d4 /spec/ruby/optional | |
| parent | 4751caecc357c313c3c81c3d422a3cbc880c6ecc (diff) | |
io.c: warn non-nil $,
* array.c (rb_ary_join_m): warn use of non-nil $,.
* io.c (rb_output_fs_setter): warn when set to non-nil value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/optional')
| -rw-r--r-- | spec/ruby/optional/capi/globals_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/optional/capi/globals_spec.rb b/spec/ruby/optional/capi/globals_spec.rb index 068b372230..0bded557ba 100644 --- a/spec/ruby/optional/capi/globals_spec.rb +++ b/spec/ruby/optional/capi/globals_spec.rb @@ -159,7 +159,7 @@ describe "CApiGlobalSpecs" do end after :each do - $, = @dollar_comma + suppress_warning {$, = @dollar_comma} end it "returns nil by default" do @@ -167,7 +167,7 @@ describe "CApiGlobalSpecs" do end it "returns the value of $\\" do - $, = "foo" + suppress_warning {$, = "foo"} @f.rb_output_fs.should == "foo" end end |
