From b8d15b7e470fe6889daae9e8ff8cf6541f789a59 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Nov 2017 10:38:36 +0000 Subject: [PATCH] spec/ruby/optional/capi/constants_spec.rb: Data is deprecated now git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/optional/capi/constants_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/ruby/optional/capi/constants_spec.rb b/spec/ruby/optional/capi/constants_spec.rb index d663ecda30..096332971c 100644 --- a/spec/ruby/optional/capi/constants_spec.rb +++ b/spec/ruby/optional/capi/constants_spec.rb @@ -25,8 +25,10 @@ describe "C-API constant" do @s.rb_mComparable.should == Comparable end - specify "rb_cData references the Data class" do - @s.rb_cData.should == Data + ruby_version_is ""..."2.5" do + specify "rb_cData references the Data class" do + @s.rb_cData.should == Data + end end specify "rb_mEnumerable references the Enumerable module" do