method
expect
1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
expect(&block)
public
Extends the submitted block with aliases to and to_not for should and should_not. Allows expectations like this:
expect { this_block }.to change{this.expression}.from(old_value).to(new_value) expect { this_block }.to raise_error