Declared description for this example:
describe Account do it "should start with a balance of 0" do ... description => "should start with a balance of 0"
# File lib/spec/example/example_methods.rb, line 20 def description if description = @_proxy.description || ::Spec::Matchers.generated_description description else Spec.warn Spec::Example::NoDescriptionError.message("example", @_proxy.location) end 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
# File lib/spec/example/example_methods.rb, line 69 def expect(&block) block.extend BlockAliases end
Run all the after(:each) blocks for this example
# File lib/spec/example/example_methods.rb, line 111 def run_after_each example_group_hierarchy.run_after_each(self) end
Generated with the Darkfish Rdoc Generator 2.