1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/data/constants_spec.rb
2020-12-27 17:35:32 +01:00

23 lines
467 B
Ruby

require_relative '../../spec_helper'
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
end
ruby_version_is '3.0' do
describe "Data" do
it "does not exist anymore" do
Object.should_not have_constant(:Data)
end
end
end