ESpec.To (ESpec v1.10.0)

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.

Summary

Functions

not_to(subject, arg2)

to(module, arg2)

Wrappers for ESpec.AllowTo.to.

to_not(subject, arg2)