Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to return the block value as expected by many rubyists #1284

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

tagomoris
Copy link
Member

test_driver.run doesn't return the value of block specified. In standard ruby way, the behavior below is expected (but not yet).

v = d.run do
  1
  2
end
v == 2 # expected

This change fixes #1268.

@tagomoris
Copy link
Member Author

This change is only for test driver, so I'll merge this after CI green.

@cosmo0920
Copy link
Contributor

Hm, it looks that #1282 is same purpose PR.
Which is better?

@tagomoris tagomoris merged commit 57ade62 into master Oct 19, 2016
@tagomoris tagomoris deleted the block-of-test-driver-should-return-value-of-block branch October 19, 2016 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test driver's #run method doesn't return the return value of yield
2 participants