v1_9_3_125 - Show latest stable - 0 notes - Class: Spec
it(desc, &block) public

Define an expectation with name desc. Name gets morphed to a proper test method name. For some freakish reason, people who write specs don’t like class inheritence, so this goes way out of its way to make sure that expectations aren’t inherited.

Hint: If you do want inheritence, use minitest/unit. You can mix and match between assertions and expectations as much as you want.

Show source
Register or log in to add new notes.