spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guard

This commit is contained in:
Yusuke Endoh 2019-08-30 11:49:14 +09:00
parent 96b32aad93
commit ba9adcc175

View File

@ -1,7 +1,8 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "UnboundMethod#bind_call" do
ruby_version_is '2.7' do
describe "UnboundMethod#bind_call" do
before :each do
@normal_um = UnboundMethodSpecs::Methods.new.method(:foo).unbind
@parent_um = UnboundMethodSpecs::Parent.new.method(:foo).unbind
@ -47,4 +48,5 @@ describe "UnboundMethod#bind_call" do
um = p.method(:singleton_method).unbind
->{ um.bind_call(other) }.should raise_error(TypeError)
end
end
end