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

Methods

Included Modules

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

Classes and Modules

Module Spec::Example::ExampleMethods::BlockAliases

Public Class methods

Public Instance methods

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"

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 all the after(:each) blocks for this example

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

[Validate]