1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-05-28 22:41:48 +02:00
parent d070523e7b
commit a66bc2c011
41 changed files with 699 additions and 639 deletions

View file

@ -19,6 +19,10 @@ describe "The yield call" do
it "ignores assignment to the explicit block argument and calls the passed block" do
@y.ze { 42 }.should == 42
end
it "does not pass a named block to the block being yielded to" do
@y.z() { |&block| block == nil }.should == true
end
end
describe "taking a single argument" do