Closed tpendragon closed 9 years ago
@psyho https://github.com/terrellt/bogus/commit/2cd401328e39f3b7372faee5220c81ca26c7000c I think this covers it.
Thanks for catching this issue.
BTW. You don't need to call object.allocate.method()
, you can also use object.instance_method()
.
Ah, thanks. Would you like me to change that bit and send a PR, or would you like to do the commit?
I cherry-picked your commit and made some cosmetic changes. Thank you for your help.
Very nice, thank you for getting it in.
Given
I would expect
to throw an error, because TestClass can't instantiate with only one argument. It doesn't. Is this because it's sidestepping #initialize, where the arguments are actually defined?