jordansissel / ruby-insist

I insist. (a testing tool for ruby)
Other
4 stars 0 forks source link

add 'insist' antonym feature #1

Closed jordansissel closed 12 years ago

jordansissel commented 12 years ago

Something like 'not insist' but perhaps a better word.

thesaurus.com offers 'deny' as a possible negation. Not sure yet...

jordansissel commented 12 years ago

considering 'reject'

insist { foo } == 3
reject { foo } != 3

Intended use case is mainly for predicate functions, such as:

reject { some_list }.include?(value_which_must_not_be_present)