diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2019-12-30 17:47:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 17:47:58 -0500 |
commit | 99c7b0b7ea789643bef60085ab59e4b62011ef8b (patch) | |
tree | 1ebd08d7cea926d6b8faf40f1114a76d8e399613 /spec/ruby/core | |
parent | 3e2418e2a64cadeb59e02d13b424b62b8d867ad5 (diff) | |
download | ruby-99c7b0b7ea789643bef60085ab59e4b62011ef8b.tar.gz |
Decide lambdaness of (f << g) using g (#2729)
* Deciding lambdaness of (f << g) using g
* Use version guards for spec changes
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/method/compose_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/core/method/compose_spec.rb b/spec/ruby/core/method/compose_spec.rb index aa0aded775..2cf5b21670 100644 --- a/spec/ruby/core/method/compose_spec.rb +++ b/spec/ruby/core/method/compose_spec.rb @@ -39,7 +39,8 @@ 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 + ruby_version_is(''...'2.8') { (pow_2 << double).lambda?.should == true } + ruby_version_is('2.8') { (pow_2 << double).lambda?.should == false } end it "may accept multiple arguments" do |