Skip to content

Instantly share code, notes, and snippets.

@l4u
Created January 23, 2013 10:09
Show Gist options
  • Save l4u/4603951 to your computer and use it in GitHub Desktop.
Save l4u/4603951 to your computer and use it in GitHub Desktop.
1) test_generate_match_with_literal_plus_identifier (Dynamo.Router.UtilsTest)
** (ExUnit.ExpectationError)
expected: {[:id],["foo",{:<>,[],["bar-",{:id,[],nil}]}]}
to be equal to (==): {[:id],["foo",{:<>,[import: Kernel],["bar-",{:id,[],nil}]}]}
at /Volumes/mac/Projects/dynamo/test/dynamo/router/utils_test.exs:45
@l4u
Copy link
Author

l4u commented Jan 23, 2013

MIX_ENV=test mix do deps.get, test     All dependencies up to date
.............................F..........................................................................
=ERROR REPORT==== 23-Jan-2013::18:23:47 ===
      Conn: GET /error
    Reason: (RuntimeError) Oops
Stacktrace:
  /Volumes/mac/Projects/dynamo/test/dynamo/filters/exceptions_test.exs:48: Dynamo.Filters.ExceptionsTest.ExceptionsApp.dispatch/3
  /Volumes/mac/Projects/dynamo/lib/dynamo/filters/exceptions.ex:15: Dynamo.Filters.Exceptions.service/3
  /Volumes/mac/Projects/dynamo/lib/dynamo/http/case.ex:190: Dynamo.HTTP.Case.do_process/2
  /Volumes/mac/Projects/dynamo/test/dynamo/filters/exceptions_test.exs:104: Dynamo.Filters.ExceptionsTest."test invokes handler on exceptions"/0
  /Volumes/mac/Projects/elixir/lib/ex_unit/lib/ex_unit/runner.ex:90: ExUnit.Runner.run_test/5
  lists.erl:1262: :lists.foreach/2
  /Volumes/mac/Projects/elixir/lib/elixir/lib/enum.ex:274: Enum.each/2
.......
=ERROR REPORT==== 23-Jan-2013::18:23:47 ===
      Conn: GET /unauthorized
    Reason: (Dynamo.Filters.ExceptionsTest.UnauthorizedError) Unauthorized
Stacktrace:
  /Volumes/mac/Projects/dynamo/test/dynamo/filters/exceptions_test.exs:58: Dynamo.Filters.ExceptionsTest.ExceptionsApp.dispatch/3
  /Volumes/mac/Projects/dynamo/lib/dynamo/filters/exceptions.ex:15: Dynamo.Filters.Exceptions.service/3
  /Volumes/mac/Projects/dynamo/lib/dynamo/http/case.ex:190: Dynamo.HTTP.Case.do_process/2
  /Volumes/mac/Projects/dynamo/test/dynamo/filters/exceptions_test.exs:110: Dynamo.Filters.ExceptionsTest."test requests status code on exceptions"/0
  /Volumes/mac/Projects/elixir/lib/ex_unit/lib/ex_unit/runner.ex:90: ExUnit.Runner.run_test/5
  lists.erl:1262: :lists.foreach/2
  /Volumes/mac/Projects/elixir/lib/elixir/lib/enum.ex:274: Enum.each/2
..............................
=ERROR REPORT==== 23-Jan-2013::18:23:47 ===
      Conn: GET /other
    Reason: (Dynamo.NotFoundError) no route found
Stacktrace:
  test/dynamo/cowboy/router_test.exs:178: Dynamo.Cowboy.RouterTest.RouterApp.dispatch/3
  lib/dynamo/filters/exceptions.ex:15: Dynamo.Filters.Exceptions.service/3
  lib/dynamo/cowboy/handler.ex:15: Dynamo.Cowboy.Handler.init/3
  src/cowboy_protocol.erl:477: :cowboy_protocol.handler_init/4
..........................................................................................

1) test_generate_match_with_literal_plus_identifier (Dynamo.Router.UtilsTest)
  ** (ExUnit.ExpectationError)
                expected: {[:id],["foo",{:<>,[],["bar-",{:id,[],nil}]}]}
     to be equal to (==): {[:id],["foo",{:<>,[import: Kernel],["bar-",{:id,[],nil}]}]}
  at /Volumes/mac/Projects/dynamo/test/dynamo/router/utils_test.exs:45

231 tests, 1 failures.
MIX_ENV=test mix do deps.get, test  28.55s user 1.73s system 150% cpu 20.177 total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment