Skip to content

Commit b3ea5c2

Browse files
hadleyt-kalinowski
andauthored
Update R/expect-inheritance.R
Co-authored-by: Tomasz Kalinowski <[email protected]>
1 parent 55d9bfc commit b3ea5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expect-inheritance.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ expect_s7_class <- function(object, class) {
113113
"%s inherits from %s not <%s>.",
114114
act$lab,
115115
paste0("<", setdiff(base::class(object), "S7_object"), ">", collapse = "/"),
116-
attr(class, "name")
116+
attr(class, "name", TRUE)
117117
)
118118
)
119119
}

0 commit comments

Comments
 (0)