<nathaniel / NOSPAMtalbott.ws> writes: > Or #assert_eqq? While a bit bizarre, that does have the advantage of > being short, distinguishable and memorable. Yes, maybe there is no good English word for "the === operator" so inventing one is reasonable. "Pit Capitain" <pit / capitain.de> writes: > Someone suggested "assert_case_of" and "assert_not_case_of" recently > in this thread. > > I like it: > > assert_case_of( String, "hi" ) These works less well for Regexp. E.g. this is true: assert_case_of(/x/, "fooxfoo") Maybe borrow from Ruby's own use of === in "when" statements: assert_when(/x/, "fooxfoo") assert_when(String, "bar") assert_not_when(Array, "bar") -- matt