Skip to content

Instantly share code, notes, and snippets.

@knewter
Created May 1, 2014 21:56
Show Gist options
  • Save knewter/3f6c7c003dc4d7625127 to your computer and use it in GitHub Desktop.
Save knewter/3f6c7c003dc4d7625127 to your computer and use it in GitHub Desktop.
1) test fetch many packages (HexWeb.API.RouterTest)
test/hex_web/api/router_test.exs:469
Assertion with == failed
code: conn.status() == 200
lhs: 500
rhs: 200
stacktrace:
test/hex_web/api/router_test.exs:473
......16:55:48.086 [error] ** (Protocol.UndefinedError) protocol JSON.Encoder not implemented for {:week, 1}
lib/json/encoder.ex:216: JSON.Encoder.Any.to_json/2
lib/json/encoder.ex:12: JSON.Encode.it/2
lib/json.ex:12: JSON.encode!/2
lib/json/encoder.ex:47: anonymous fn/2 in JSON.Encoder.List.encode_array/3
(elixir) lib/enum.ex:962: Enum."-map/2-lc$^0/1-0-"/2
lib/json/encoder.ex:46: JSON.Encoder.List.encode_array/3
lib/json/encoder.ex:34: JSON.Encoder.List.to_json/2
lib/json/encoder.ex:12: JSON.Encode.it/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment