ESpec.AssertionHelpers
Defines helper functions for modules which use ESpec.
These fucntions wraps arguments for ESpec.ExpectTo module.
See ESpec.Assertion
module for corresponding ‘assertion modules’
Source
Summary
accepted(func, args \\ :any, opts \\ [pid: :any, count: :any]) |
be(value) |
be(operator, value) |
be_atom() |
be_between(min, max) |
be_binary() |
be_bitstring() |
be_boolean() |
be_close_to(value, delta) |
be_empty() |
be_float() |
be_function() |
be_function(arity) |
be_integer() |
be_list() |
be_map() |
be_nil() |
be_number() |
be_pid() |
be_port() |
be_printable() |
be_reference() |
be_tuple() |
be_valid_string() |
change(func, value) |
change(func, before, value) |
end_with(value) |
eq(value) |
eq_dict(value) |
eql(value) |
have(val) |
have_all(func) |
have_any(func) |
have_at(pos, val) |
have_count(value) |
have_count_by(func, val) |
have_first(value) |
have_hd(value) |
have_key(value) |
have_last(value) |
have_length(value) |
have_max(value) |
have_max_by(func, value) |
have_min(value) |
have_min_by(func, value) |
have_size(value) |
have_tl(value) |
have_value(value) |
match(value) |
raise_exception() |
raise_exception(exception) |
raise_exception(exception, message) |
start_with(value) |
throw_term() |
throw_term(term) |