Skip to content

Commit

Permalink
Be more careful with error message from other package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Nolan committed Aug 17, 2024
1 parent 42ece38 commit b48a83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-example-extraction.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test_that("`extract_examples()` error works", {
skip_on_cran() # testing an error message from another package
expect_error(
extract_examples("detect", tempdir(check = TRUE)),
"Path.+does not appear to be inside a project or package.",
"Path.+does.+not.+appear.+to.+be.+inside.+project.+or.+package.",
class = "usethis_error"
)
})
Expand Down

0 comments on commit b48a83f

Please sign in to comment.