Shimmur / checker_cab

an extraction of assert_values_for
MIT License
23 stars 4 forks source link

add option to fail if both values are nil #22

Open idlehands opened 2 years ago

idlehands commented 2 years ago

It can happen sometimes that the test setup is incorrect and the code under test is similarly bad, resulting in both values for a key being nil. As the library is currently written, this will pass. It should stay the default behavior, I think, but we should look at adding an option that will raise if both values for a key are nil.