Skip to content

Commit

Permalink
fixes for: preProcessDoesntWork, preProcessWorks, preProcessMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotmcintire committed Nov 6, 2018
1 parent de665df commit 131628c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/test-preProcessDoesntWork.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ test_that("preProcess fails if user provides a directory as a targetFile", {
testthat::skip_on_cran()
testthat::skip_on_travis()
testthat::skip_on_appveyor()
testInitOut <- testInit("raster", needGoogle = TRUE)
testInitOut <- testInit("raster", needGoogle = TRUE,
opts = list('reproducible.overwrite' = TRUE))
on.exit({
testOnExit(testInitOut)
}, add = TRUE)
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-preProcessMessages.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ test_that("preProcess returns messages for deprecated arguments", {
testthat::skip_on_cran()
testthat::skip_on_travis()
testthat::skip_on_appveyor()
testInitOut <- testInit("raster", needGoogle = TRUE)
testInitOut <- testInit("raster", needGoogle = TRUE,
opts = list("reproducible.overwrite" = TRUE))
on.exit({
testOnExit(testInitOut)
}, add = TRUE)
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-preProcessWorks.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ test_that("preProcess works in different situations", {
testthat::skip_on_cran()
testthat::skip_on_travis()
testthat::skip_on_appveyor()
testInitOut <- testInit("raster", needGoogle = TRUE)
testInitOut <- testInit("raster", needGoogle = TRUE,
opts = list("reproducible.overwrite" = TRUE))
on.exit({
testOnExit(testInitOut)
}, add = TRUE)
Expand Down

0 comments on commit 131628c

Please sign in to comment.