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/proc | |
parent | f646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff) |
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/core/proc')
-rw-r--r-- | spec/ruby/core/proc/compose_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/ruby/core/proc/compose_spec.rb b/spec/ruby/core/proc/compose_spec.rb index ef9c125ae9..efdbdeacf4 100644 --- a/spec/ruby/core/proc/compose_spec.rb +++ b/spec/ruby/core/proc/compose_spec.rb @@ -35,7 +35,7 @@ ruby_version_is "2.6" do g = proc { |x| x + x } (f << g).is_a?(Proc).should == true - (f << g).lambda?.should == false + (f << g).should_not.lambda? end ruby_version_is(''...'2.8') do @@ -44,7 +44,7 @@ ruby_version_is "2.6" do g = -> x { x + x } (f << g).is_a?(Proc).should == true - (f << g).lambda?.should == false + (f << g).should_not.lambda? end it "is a lambda when self is lambda" do @@ -52,7 +52,7 @@ ruby_version_is "2.6" do g = proc { |x| x + x } (f << g).is_a?(Proc).should == true - (f << g).lambda?.should == true + (f << g).should.lambda? end end @@ -63,8 +63,8 @@ ruby_version_is "2.6" do lambda_proc = -> x { x } (f << g).is_a?(Proc).should == true - (f << g).lambda?.should == false - (f << lambda_proc).lambda?.should == true + (f << g).should_not.lambda? + (f << lambda_proc).should.lambda? end end @@ -118,7 +118,7 @@ ruby_version_is "2.6" do g = proc { |x| x + x } (f >> g).is_a?(Proc).should == true - (f >> g).lambda?.should == false + (f >> g).should_not.lambda? end it "is a Proc when other is lambda" do @@ -126,7 +126,7 @@ ruby_version_is "2.6" do g = -> x { x + x } (f >> g).is_a?(Proc).should == true - (f >> g).lambda?.should == false + (f >> g).should_not.lambda? end it "is a lambda when self is lambda" do @@ -134,7 +134,7 @@ ruby_version_is "2.6" do g = proc { |x| x + x } (f >> g).is_a?(Proc).should == true - (f >> g).lambda?.should == true + (f >> g).should.lambda? end it "may accept multiple arguments" do |