mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Disable deprecation warning by the default [Feature #16345]
And `-w` option turns it on.
This commit is contained in:
parent
83ff0f74bf
commit
996af2ce08
Notes:
git
2020-09-25 09:50:59 +09:00
19 changed files with 100 additions and 156 deletions
|
|
@ -1,13 +1,15 @@
|
|||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Data" do
|
||||
it "is a subclass of Object" do
|
||||
suppress_warning do
|
||||
Data.superclass.should == Object
|
||||
ruby_version_is ""..."3.0" do
|
||||
describe "Data" do
|
||||
it "is a subclass of Object" do
|
||||
suppress_warning do
|
||||
Data.superclass.should == Object
|
||||
end
|
||||
end
|
||||
|
||||
it "is deprecated" do
|
||||
-> { Data }.should complain(/constant ::Data is deprecated/)
|
||||
end
|
||||
end
|
||||
|
||||
it "is deprecated" do
|
||||
-> { Data }.should complain(/constant ::Data is deprecated/)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue