eproxus / meck

A mocking library for Erlang
http://eproxus.github.io/meck
Apache License 2.0
811 stars 231 forks source link

Validate the options being passed to meck:new #204

Closed FrankBro closed 5 years ago

FrankBro commented 5 years ago

Right now, the options being passed to meck are not checked against a list of possible options. This bit me because I made a typo when trying to pass passthrough to meck:new. Funnily enough, by implementing the change, I found a typo in one of your test cases for that option as well.

I'm fairly new to Erlang so I'm not sure if I did everything correctly.

eproxus commented 5 years ago

Looks good! Thanks a lot for the PR!