diff --git a/DESCRIPTION b/DESCRIPTION index c91b97ed..52b2791e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: rapbase Type: Package Title: Base Functions and Resources for Rapporteket -Version: 1.20.0 +Version: 1.20.1 Authors@R: c( person(given = "Are", family = "Edvardsen", diff --git a/NEWS.md b/NEWS.md index 7d6c6172..97366c9b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# rapbase 1.20.1 + +* Fix unit testing issue by also allowing "MockShinySession" as an attribute of the shiny session object + # rapbase 1.20.0 * Navbar user information widget provided as a shiny module diff --git a/R/UserInfo.R b/R/UserInfo.R index 1c39ac69..bd0071cc 100644 --- a/R/UserInfo.R +++ b/R/UserInfo.R @@ -80,7 +80,7 @@ userInfo <- function(entity, shinySession = NULL, devContexts = c("DEV"), stop("Session information is empty! Eventually, that will come bite you") } - if (!any(c("ShinySession", "session_proxy") %in% + if (!any(c("ShinySession", "session_proxy", "MockShinySession") %in% attributes(shinySession)$class)) { stop(paste( "Got no object of class 'ShinySession' or 'session_proxy'!",