diff options
Diffstat (limited to 'test/support/test_util.ex')
-rw-r--r-- | test/support/test_util.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/test_util.ex b/test/support/test_util.ex index 2724678..80a1d7f 100644 --- a/test/support/test_util.ex +++ b/test/support/test_util.ex @@ -37,4 +37,8 @@ defmodule TestUtil do end ) end + + def http_spec_body_to_binary(http_spec) do + Map.update!(http_spec, :body, &IO.iodata_to_binary/1) + end end |