Is there something like RSpec describe
it
framework for Erlang?
Have you seen espec: https://github.com/lucaspiller/espec? Seems like it can have syntax like
describe("#generate_headers", fun() ->
it("should generate Host and User-Agent headers", fun() ->
[
{"Host", "api.twitter.com"},
{"User-Agent", "Twerl"}
] = stream_client_util:generate_headers()
end)
end).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With