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

Add an option to ignore additional args #38

Merged
merged 2 commits into from Oct 24, 2015
Merged

Add an option to ignore additional args #38

merged 2 commits into from Oct 24, 2015

Conversation

searls
Copy link
Member

@searls searls commented Oct 24, 2015

Sometimes we don't care about the args when we stub or verify. Sometimes we only care about the first n args. In those cases, you can use the ignoreExtraArgs option. It's pretty neato.

Resolves #36

Just keep adding ", config" until the pain goes away.

So this should grease the skid to other options when
determining a match by just passing it all the way through from
the user down into the arg matcher function. It's a bit of a blunt
instrument, but I can't think of a simpler way to do it.
searls added a commit that referenced this pull request Oct 24, 2015
Add an option to ignore additional args
@searls searls merged commit 0245ac8 into master Oct 24, 2015
@jasonkarns jasonkarns deleted the ignore-extra-arg branch November 18, 2015 14:30
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.

None yet

1 participant