{"action":"opened","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/3702","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3702/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3702/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3702/events","html_url":"https://github.com/elixir-lang/elixir/issues/3702","id":105745514,"number":3702,"title":"ExUnit: assert_receive/3 and assert_received/2 do not print value when pinned variables is used","user":{"login":"eksperimental","id":9133420,"avatar_url":"https://avatars.githubusercontent.com/u/9133420?v=3","gravatar_id":"","url":"https://api.github.com/users/eksperimental","html_url":"https://github.com/eksperimental","followers_url":"https://api.github.com/users/eksperimental/followers","following_url":"https://api.github.com/users/eksperimental/following{/other_user}","gists_url":"https://api.github.com/users/eksperimental/gists{/gist_id}","starred_url":"https://api.github.com/users/eksperimental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eksperimental/subscriptions","organizations_url":"https://api.github.com/users/eksperimental/orgs","repos_url":"https://api.github.com/users/eksperimental/repos","events_url":"https://api.github.com/users/eksperimental/events{/privacy}","received_events_url":"https://api.github.com/users/eksperimental/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T07:18:27Z","updated_at":"2015-09-10T07:18:27Z","closed_at":null,"body":"ExUnit: assert_receive/3 and assert_received/2 do not print value when pinned variables is used in the \"No message matching\" message\r\n\r\nShowing:\r\n\r\n    No message matching ^fruits after 0ms\r\n\r\ninstead of showing the actual value of fruits\r\n\r\n`$ cat test/ex_unit_no_match_message_pin_operator_test.exs`\r\n```elixir\r\nCode.require_file \"./test_helper.exs\", __DIR__\r\n\r\ndefmodule ElixirBugs.ExUnitNoMatchMessagePinOperator do\r\n  use ExUnit.Case\r\n\r\n  test \"ExUnit.assert_receive/3: match pinned variables\" do\r\n    fruits = \"Apples and Pears\"\r\n    send self, fruits\r\n    assert_receive ^fruits\r\n    assert_receive ^fruits\r\n  end\r\n\r\n  test \"ExUnit.asssert_received/2: match pinned variables\" do\r\n    fruits = \"Apples and Pears\"\r\n    send self, fruits\r\n    assert_received ^fruits\r\n    assert_received ^fruits\r\n  end\r\nend\r\n```\r\n\r\n`$ mix test`\r\n```sh\r\n  1) test assert_receive: match pinned variables (ElixirBugs.ExUnitNoMatchMessagePinOperator)\r\n     test/ex_unit_no_match_message_pin_operator_test.exs:13\r\n     No message matching ^fruits after 100ms. The process mailbox is empty.\r\n     stacktrace:\r\n       test/ex_unit_no_match_message_pin_operator_test.exs:17\r\n\r\n\r\n\r\n  2) test asssert_received: match pinned variables (ElixirBugs.ExUnitNoMatchMessagePinOperator)\r\n     test/ex_unit_no_match_message_pin_operator_test.exs:6\r\n     No message matching ^fruits after 0ms. The process mailbox is empty.\r\n     stacktrace:\r\n       test/ex_unit_no_match_message_pin_operator_test.exs:10\r\n```\r\n\r\nCode available: https://github.com/eksperimental/elixir_bugs/tree/ex_unit_no_match_message_pin_operator"}}