Module: Spec::Example::ExampleMethods

Module | Spec::Example::ExampleMethods
In: | lib/spec/example/example_methods.rb

### Methods

description expect new run_after_each run_before_each violated

### Included Modules

Spec::Example::Subject::ExampleMethods Matchers Pending

### Classes and Modules

Module Spec::Example::ExampleMethods::BlockAliases

### Public Class methods

new(example_proxy, &implementation)

### Public Instance methods

description()

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"

expect(&block)

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

run_after_each()

Run all the after(:each) blocks for this example

run_before_each()

Run all the before(:each) blocks for this example

violated(message="")

[Validate]