mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* Use the wrapper of rb_cObject instead of data access * Replaced rest of extentions * Updated the version guard for Data * Added the version guard of rb_cData
15 lines
322 B
Ruby
15 lines
322 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
|