ESpec v0.8.8 ESpec.To
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.
Summary
Functions
Wrapper for ESpec.ExpectTo.not_to
Wrapper for ESpec.ExpectTo.to
Wrapper for ESpec.ExpectTo.to_not