assertions
assertions copied to clipboard
Helpful assertions for ExUnit
Assertions conditionally adds helpers for use with Absinthe. `Assertions.Absinthe` utilizes `Code.ensure_compiled/1` to manage this condition. However, `undefined function assert_response_equals/4` is raised when compiling all dependencies. Recompiling assertions after compiling all...
Fixes #22 Replaces #24 From my reading of the docs and other research, it looks like `Code.ensure_loaded?` is a better way to check whether an optional dependency module exists or...
@devonestes thank you so much for your hard work on this project! As noted in #27, there are some failing doctests. This is simply because the :user object referred to...
Besides other changes, this commit ensures the generated HTML doc for HexDocs.pm will become the main source doc for this Elixir library which leverage on ExDoc features. List of changes:...
`equal` implies full equality aka `==` which seems confusing (and was pointed out as a downside to introducing assertions into our code base). Not sure what the best name for...
Hey, love the work thank you. But I'm struggling here with consistently getting the assertions methods to properly compile here. I have a really (really) [small phoenix app](https://github.com/tadiou/assertions_test ) i...
The `Expressive assertion` example also required `assert_structs_equal` to be imported to work, as it's mentioned on line 141. This commit adds it in, just so it's not missed. Thanks for...
I think this https://github.com/devonestes/assertions/blob/8b353fd941baee8b71181d4e8722c587a5aede87/lib/assertions.ex#L333 should have a sensible default: if nothing is passed as keys, assume exact equivalency - `assert_lists_equal Map.keys(left), Map.keys(right)` at the beginning - then the deeper check...
This is the one I encountered in my own project, but it fails in the test suite as well. ``` warning: incompatible types in expression: comparison expected type: fun() but...