diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-05-03 12:28:29 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-05-03 12:28:29 +0200 |
commit | 5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 (patch) | |
tree | e1694f5a4a5558884b1b8f3890b186793e5e982f /spec/ruby/core/method | |
parent | f646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff) | |
download | ruby-5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39.tar.gz |
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/core/method')
-rw-r--r-- | spec/ruby/core/method/compose_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/method/compose_spec.rb b/spec/ruby/core/method/compose_spec.rb index 2cf5b21670..0e2a0eeea2 100644 --- a/spec/ruby/core/method/compose_spec.rb +++ b/spec/ruby/core/method/compose_spec.rb @@ -39,8 +39,8 @@ ruby_version_is "2.6" do double = proc { |x| x + x } (pow_2 << double).is_a?(Proc).should == true - ruby_version_is(''...'2.8') { (pow_2 << double).lambda?.should == true } - ruby_version_is('2.8') { (pow_2 << double).lambda?.should == false } + ruby_version_is(''...'2.8') { (pow_2 << double).should.lambda? } + ruby_version_is('2.8') { (pow_2 << double).should_not.lambda? } end it "may accept multiple arguments" do @@ -88,7 +88,7 @@ ruby_version_is "2.6" do double = proc { |x| x + x } (pow_2 >> double).is_a?(Proc).should == true - (pow_2 >> double).lambda?.should == true + (pow_2 >> double).should.lambda? end it "may accept multiple arguments" do |