Sha256: 60caae180d99d32b05bb9c93743ce08a00ce7207ef36ee5898006cbec6a897bf
Contents?: true
Size: 527 Bytes
Versions: 27
Compression:
Stored size: 527 Bytes
Contents
module RSpec module Core class ExampleGroup module BlockAliases alias_method :to, :should alias_method :to_not, :should_not end # 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 def expect(&block) block.extend BlockAliases end end end end
Version data entries
27 entries across 27 versions & 2 rubygems