ESpec.To (ESpec v1.8.3) 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
Wrappers for ESpec.AllowTo.to.
Link to this section Functions
Wrappers for ESpec.AllowTo.to.