diff --git a/tests/testthat/test-colons.R b/tests/testthat/test-colons.R index cc72df9..22012e7 100644 --- a/tests/testthat/test-colons.R +++ b/tests/testthat/test-colons.R @@ -2,8 +2,8 @@ test_that("%colons%", { expect_identical(`%colons%`, `%:::%`) # errors - expect_error("fuj" %:::% "not_in_fuj", class = "fuj:colonsError") - expect_error("fuj" %::% "colons_example", class = "fuj:colonsError") + expect_error("fuj" %:::% "not_in_fuj", class = "colonsError") + expect_error("fuj" %::% "colons_example", class = "colonsError") expect_error("1" %::% "foo", class = "fuj:namespaceError") # successes diff --git a/tests/testthat/test-namespace.R b/tests/testthat/test-namespace.R index b8c77fd..6afbdb0 100644 --- a/tests/testthat/test-namespace.R +++ b/tests/testthat/test-namespace.R @@ -4,12 +4,12 @@ test_that("require_namespace", { expect_true(require_namespace("base", "methods", "stats")) # custom error on failure - expect_error(require_namespace("1"), class = "fuj:namespaceError") + expect_error(require_namespace("1"), class = "namespaceError") # only the first package should cause an error expect_error( require_namespace("base", "1foo", "2foo"), - class = "fuj:namespaceError", + class = "namespaceError", regexp = cond_namespace("1foo")$message, fixed = TRUE ) @@ -17,7 +17,7 @@ test_that("require_namespace", { # this should fail because we shouldn't see 2foo expect_error(expect_error( require_namespace("base", "1foo", "2foo"), - class = "fuj:namespaceError", + class = "namespaceError", regexp = "2foo", fixed = TRUE ))