ESpec.To (ESpec v1.10.0)
View SourceDefines 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.
Summary
Functions
Wrappers for ESpec.AllowTo.to.