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

updated error message checks in tests that rely on assertthat::has_name #111

Merged
merged 1 commit into from
Mar 27, 2019
Merged

updated error message checks in tests that rely on assertthat::has_name #111

merged 1 commit into from
Mar 27, 2019

Conversation

jameslamb
Copy link
Contributor

@jameslamb jameslamb commented Mar 21, 2019

Hello,

We are currently in the process of updating assertthat (hadley/assertthat#59) and found that recent changes (namely hadley/assertthat#60) to assertthat::has_name() break you existing unit tests. Will you please consider this PR to adjust your test strategy?

Basically, has_name() previously had inconsistent behavior when given multiple names to check. That has been corrected and while correcting it, I slightly changed the error message raised by assert_that(has_name(...)) calls.

I've confirmed that the slight change I'm proposing in this PR will allow your unit tests to pass with the current version of assertthat on CRAN (0.2.0) AND with the new version (0.2.1) when it is released.

@itcarroll
Copy link
Collaborator

Also passed tests locally.

@itcarroll itcarroll merged commit 4c0d953 into NCEAS:master Mar 27, 2019
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

Successfully merging this pull request may close these issues.

2 participants