Skip to content

Commit

Permalink
Added a small test for subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik committed Oct 3, 2017
1 parent 4d1bd8c commit 7197a9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-07-drop_ops.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ test_that("drop_exists works correctly", {
skip_on_cran()

folder_name <- traceless("drop_exists")
folder_name2 <- paste0(folder_name, "/", "sub_folder")
drop_create(folder_name)
# This should create a subfolder inside folder_name
drop_create(folder_name2)

expect_true(drop_exists(folder_name))
expect_true(drop_exists(folder_name2))
expect_false(drop_exists(traceless("stuffnthings")))

# Now test files inside subfolders
Expand Down

0 comments on commit 7197a9d

Please sign in to comment.