Skip to content

Fix for issue #209 #230

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

Merged
merged 3 commits into from
Mar 9, 2016
Merged

Fix for issue #209 #230

merged 3 commits into from
Mar 9, 2016

Conversation

egonSchiele
Copy link
Owner

The issue here was, the arguments to KeywordArgs are optional. So if they are not provided, the params and contracts don't line up correctly.

KeywordArgs    Proc
{}                     <Proc>

becomes

KeywordArgs    Proc
<Proc>

Fix is in this commit. Could you review @waterlink ?
cc @rap-kasta

@waterlink
Copy link
Collaborator

Looks good to me. Is it possible to add a failing spec for this?

@egonSchiele
Copy link
Owner Author

Good call -- done. Will squash and merge.

expect(@o.keyword_args_hello(&:upcase)).to eq("Hey, ADIT!")
end
end

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests need to go to ruby-specific tests.

egonSchiele added a commit that referenced this pull request Mar 9, 2016
@egonSchiele egonSchiele merged commit c64221b into master Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants