mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
307 B
Ruby
16 lines
307 B
Ruby
![]() |
require_relative '../../spec_helper'
|
||
|
|
||
|
describe "Data" do
|
||
|
it "is a subclass of Object" do
|
||
|
suppress_warning do
|
||
|
Data.superclass.should == Object
|
||
|
end
|
||
|
end
|
||
|
|
||
|
ruby_version_is "2.5" do
|
||
|
it "is deprecated" do
|
||
|
-> { Data }.should complain(/constant ::Data is deprecated/)
|
||
|
end
|
||
|
end
|
||
|
end
|