Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MansMeg committed Dec 30, 2017
1 parent 98e8fbf commit 0e5cd0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/expectations.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#' @export
expect_function_self_contained <- function(object, info = NULL, label = NULL) {

if(!is.null(info)) .Deprecated(msg = "argument info is deprecated with testthat 2.0")
if(!is.null(label)) .Deprecated(msg = "argument label is deprecated with testthat 2.0")

# 1. Capture object and label
Expand Down Expand Up @@ -45,8 +44,7 @@ expect_function_self_contained <- function(object, info = NULL, label = NULL) {
#' @export
expect_attached_package <- function(pkg, info = NULL){
checkmate::assert_string(pkg)
if(!is.null(info)) .Deprecated(msg = "argument info is deprecated with testthat 2.0")


# 2. Call expect()
msg <- sprintf("Package '%s' is not used (attached).", pkg)
expect(any(grepl(pkg, search())), msg)
Expand Down

0 comments on commit 0e5cd0c

Please sign in to comment.