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