Current section

Files

Jump to
espec_jsonapi lib espec_jsonapi.ex
Raw

lib/espec_jsonapi.ex

defmodule EspecJsonapi do
alias EspecJsonapi.Assertions.HaveId
alias EspecJsonapi.Assertions.HaveType
alias EspecJsonapi.Assertions.HaveAttribute
alias EspecJsonapi.Assertions.HaveAttributes
def have_id(id), do: {HaveId, id}
def have_type(type), do: {HaveType, type}
def have_attribute(attribute), do: {HaveAttribute, attribute}
def have_attributes(attributes), do: {HaveAttributes, attributes}
end