   end
 
   @doc """
-  Asserts `message` was not received (and won't be received) within
-  the `timeout` period.
-
-  The `not_expected` argument is a match pattern.
+  Asserts that a message matching `pattern` was not received (and won't be received)
+  within the `timeout` period.
+
+  The `pattern` argument must be a match pattern. Flunks with `failure_message`
+  if a message matching `pattern` is received.
 
   ## Examples
 

  end

  @doc """
  Asserts a message was or is going to be received.

  Unlike `assert_received`, it has a default timeout
  of 100 milliseconds.

  The `expected` argument is a pattern.

  ## Examples


    end
  end

 defp refute_receive_clause(pattern, nil) do
  binary = Macro.to_string(pattern)
  quote do
    unquote(pattern) = actual ->
      flunk "Unexpectedly received message #{inspect actual} (which matched #{unquote binary})"
    end
  end

  defp refute_receive_clause(pattern, failure_message) do
    quote do
      unquote(pattern) -> flunk unquote(failure_message)
    end
  end

