Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_email_delivered_with has verbose failure output #659

Open
kacorvus opened this issue Sep 11, 2023 · 0 comments
Open

assert_email_delivered_with has verbose failure output #659

kacorvus opened this issue Sep 11, 2023 · 0 comments

Comments

@kacorvus
Copy link

  defp flunk_attributes_do_not_match(params_given, params_received) do
    """
    The parameters given do not match.

      Parameters given:

        #{inspect(params_given)}

      Email received:

        #{inspect(params_received)}
    """
  end

When you encounter an email failure that uses the helper above, the "Email received:" portion of the failure consumes a lot of space in the error message. Maybe only "Parameters given" should be shown by default and advanced users can provide an additional argument to request verbose output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant