Closed chastell closed 11 years ago
Cool, thanks. Could you split the test into two examples and add the parenthesis to the struct definition to keep common style of coding? :)
Obviously! :) Do you have any particular coding/specing style written down anywhere? I’ll be happy to adjust.
I guess we follow github's styleguide except the 1.9 hash syntax, which we often use. We don't indent arguments to the same line often, as you did in one of the commits in this PR, but I don't have strong opinion on that. ;)
Duly noted!
Does this mean you’ll accept a PR fixing block invocations (from foo {|bar| baz}
to foo { |bar| baz }
)? :)
We don't follow this guide strictly ;p My point was around parentheses, I skip them only in methods with no arguments or in assertions, added missing ones here: https://github.com/psyho/bogus/commit/5e0108d65d579896d0c3125c002b54eae0ecc3a4
Interaction#any_args?
calls#==
on the tracked method’s arguments, rather than callingAnyArgs#==
; this makesInteraction#==
blow up when objects with custom#==
are used as arguments.This PR fixes this behaviour. :)