summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
commit5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 (patch)
treee1694f5a4a5558884b1b8f3890b186793e5e982f /spec/ruby/core/proc
parentf646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff)
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/core/proc')
-rw-r--r--spec/ruby/core/proc/compose_spec.rb16
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