Skip to content

Commit

Permalink
Fixed wrong warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Dec 4, 2018
1 parent b55f92d commit 8ea9c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/PackageInheritanceReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ InheritanceReporter <- R6::R6Class(

if (nrow(nodeDT) == 0) {
msg <- sprintf(
'No Reference Class or R6 Class definitions found in package %s'
'No S4, Reference, or R6 class definitions found in package %s'
, self$pkg_name
)
log_warn(msg)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-InheritanceReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ test_that("InheritanceReporter should give warning for packages with no classes"
reporter <- InheritanceReporter$new()
reporter$set_package("baseballstats")
reporter$edges
}, regexp = "No Reference Class or R6 Class definitions found")
}, regexp = "No S4, Reference, or R6 class definitions found")
})

##### TEST TEAR DOWN #####
Expand Down

0 comments on commit 8ea9c24

Please sign in to comment.