2019-11-30 15:26:52 -05:00
|
|
|
require_relative '../../spec_helper'
|
|
|
|
|
2020-12-21 11:00:43 -05:00
|
|
|
ruby_version_is ''...'3.0' do
|
2020-07-27 03:15:28 -04:00
|
|
|
describe "Data" do
|
|
|
|
it "is a subclass of Object" do
|
|
|
|
suppress_warning do
|
|
|
|
Data.superclass.should == Object
|
|
|
|
end
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
|
|
|
|
2020-07-27 03:15:28 -04:00
|
|
|
it "is deprecated" do
|
|
|
|
-> { Data }.should complain(/constant ::Data is deprecated/)
|
|
|
|
end
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
|
|
|
end
|
2020-12-27 11:35:32 -05:00
|
|
|
|
|
|
|
ruby_version_is '3.0' do
|
|
|
|
describe "Data" do
|
|
|
|
it "does not exist anymore" do
|
|
|
|
Object.should_not have_constant(:Data)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|