mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@9a501a8
This commit is contained in:
parent
d070523e7b
commit
a66bc2c011
41 changed files with 699 additions and 639 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue