ESpec.Expect
Defines helper functions for modules which use ESpec. These fucntions wraps arguments for ESpec.To module.
Summary↑
| be(value) | Alias for |
| be(operator, value) | Returns |
| be_between(min, max) | Returns |
| be_close_to(value, delta) | Returns |
| eq(value) | Returns |
| eql(value) | Returns |
| expect(value) | Wrapper for |
| match(value) | Returns |
| raise_exception() | |
| raise_exception(exception) | |
| raise_exception(exception, message) | Returns |
| throw_term() | |
| throw_term(term) | Returns |
Functions
Alias for eq/1
Returns ESpec.To argument to call ESpec.Assertions.Be asserion.
Can be used with w(> < >= <= == != === !== <> =~)a.
Returns ESpec.To argument to call ESpec.Assertions.BeBetween asserion.
Returns ESpec.To argument to call ESpec.Assertions.BeBetween asserion.
Returns ESpec.To argument to call ESpec.Assertions.Eq asserion.
Returns ESpec.To argument to call ESpec.Assertions.Eql asserion.
Wrapper for ESpec.To. Passes the value returned by the block.
Returns ESpec.To argument to call ESpec.Assertions.Match asserion
Returns ESpec.To argument to call ESpec.Assertions.RaiseException asserion.
Returns ESpec.To argument to call ESpec.Assertions.ThrowTerm asserion.