mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue