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
# File lib/rspec/expectations/extensions/rspec/core/example_group.rb, line 14 def expect(&block) block.extend BlockAliases end
Generated with the Darkfish Rdoc Generator 2.