mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guard
This commit is contained in:
parent
96b32aad93
commit
ba9adcc175
1 changed files with 46 additions and 44 deletions
|
@ -1,6 +1,7 @@
|
|||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/classes'
|
||||
|
||||
ruby_version_is '2.7' do
|
||||
describe "UnboundMethod#bind_call" do
|
||||
before :each do
|
||||
@normal_um = UnboundMethodSpecs::Methods.new.method(:foo).unbind
|
||||
|
@ -48,3 +49,4 @@ describe "UnboundMethod#bind_call" do
|
|||
->{ um.bind_call(other) }.should raise_error(TypeError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue