Skip to content

Commit 46976cc

Browse files
committed
Update for CRAN S7
1 parent 1980b17 commit 46976cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-expect-inheritance.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ test_that("checks its inputs", {
6969
})
7070

7171
test_that("can check with actual class", {
72-
Foo <- S7::new_class("Foo")
73-
Bar <- S7::new_class("Bar")
72+
Foo <- S7::new_class("Foo", package = NULL)
73+
Bar <- S7::new_class("Bar", package = NULL)
7474
expect_success(expect_s7_class(Foo(), class = Foo))
7575
expect_snapshot_failure(expect_s7_class(Foo(), class = Bar))
7676

77-
Baz <- S7::new_class("Baz", parent = Foo)
77+
Baz <- S7::new_class("Baz", parent = Foo, package = NULL)
7878
expect_snapshot_failure(expect_s7_class(Baz(), class = Bar))
7979
})

0 commit comments

Comments
 (0)