-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isDocumentPath no longer treats directories as documents (#1139)
Additionally, remove the uncalled defaultAppName, which removes one use of isDocumentPath. fixes #1138
- Loading branch information
1 parent
5af8f1e
commit 01e6f39
Showing
6 changed files
with
24 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,13 @@ test_that("account file containing pattern characters found with server name", { | |
dir <- accountConfigFile("[email protected]", server = "complex") | ||
expect_equal(dir, expected) | ||
}) | ||
|
||
test_that("isDocumentPath", { | ||
stuff <- local_temp_app(list( | ||
"shiny.app/app.R" = c(), | ||
"doc/research.Rmd" = c() | ||
)) | ||
expect_false(isDocumentPath(file.path(stuff, "shiny.app"))) | ||
expect_false(isDocumentPath(file.path(stuff, "doc"))) | ||
expect_true(isDocumentPath(file.path(stuff, "doc/research.Rmd"))) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters