ESpec v1.6.2 ESpec.To View Source
Defines to, to_not and not_to helper functions.
The functions implement syntax: ‘expect 1 |> to eq 1’
These functions wrap arguments for ESpec.ExpectTo module.
Also defines to helper function for mocking without parenthesis:
allow SomeModule |> to accept(:f, fn(a) -> "mock" end)
These functions wrap arguments for ESpec.AllowTo module.
Link to this section Summary
Functions
Wrapper for ESpec.ExpectTo.not_to
Wrapper for ESpec.ExpectTo.to
Wrapper for ESpec.ExpectTo.to_not
Link to this section Functions
Wrapper for ESpec.ExpectTo.not_to.
Wrapper for ESpec.ExpectTo.to.
Wrapper for ESpec.ExpectTo.to_not.