ESpec v1.6.0 ESpec.ExampleHelpers View Source

Defines macros ‘example’ and ‘it’. These macros defines function with random name which will be called when example runs. Example structs %ESpec.Example are accumulated in @examples attribute

Link to this section Summary

Link to this section Functions

Link to this macro example(description) View Source (macro)

Macros for pending exaples.

Link to this macro example(opts, list) View Source (macro)

Example with description only.

Link to this macro example(description, opts, list) View Source (macro)

Adds example to @examples and defines function to wrap the spec. Sends shared’ variable to the example block.

Link to this macro fexample(list) View Source (macro)
Link to this macro fexample(description, list) View Source (macro)
Link to this macro fexample(description, opts, list) View Source (macro)
Link to this macro fit(description, list) View Source (macro)
Link to this macro fit(description, opts, list) View Source (macro)

Macros for focused examples.

Link to this macro focus(description, list) View Source (macro)
Link to this macro focus(description, opts, list) View Source (macro)
Link to this macro fspecify(list) View Source (macro)
Link to this macro fspecify(description, list) View Source (macro)
Link to this macro fspecify(description, opts, list) View Source (macro)
Link to this macro include_examples(module, lets \\ []) View Source (macro)

alias for include_examples

Link to this macro it(description) View Source (macro)
Link to this macro it(description_or_opts, list) View Source (macro)
Link to this macro it(description, opts, list) View Source (macro)

Aliases for example

Link to this macro it_behaves_like(module, lets \\ []) View Source (macro)

Defines examples using another module.

Link to this macro pending(description) View Source (macro)
Link to this macro specify(description) View Source (macro)
Link to this macro specify(description_or_opts, list) View Source (macro)
Link to this macro specify(description, opts, list) View Source (macro)
Link to this macro xexample(list) View Source (macro)
Link to this macro xexample(description, list) View Source (macro)
Link to this macro xexample(description, opts, list) View Source (macro)
Link to this macro xit(description, list) View Source (macro)
Link to this macro xit(description, opts, list) View Source (macro)

Macros for skipped examples.

Link to this macro xspecify(list) View Source (macro)
Link to this macro xspecify(description, list) View Source (macro)
Link to this macro xspecify(description, opts, list) View Source (macro)