Skip to content

Commit c5ab7d9

Browse files
committed
Groom manual tests
1 parent 4b592bd commit c5ab7d9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/manual/manual-create-from-github.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ library(usethis)
33
library(testthat)
44
library(fs)
55

6+
## make sure we'll be using SSH
7+
use_git_protocol("ssh")
8+
git_protocol()
9+
610
## this repo was chosen because it was first one listed for the cran gh user
711
## the day I made this, i.e., it's totally arbitrary
812

@@ -86,6 +90,7 @@ expect_setequal(
8690
git2r::remote_url(git2r::repository(path(conspicuous_place(), "TailRank"))),
8791
"[email protected]:cran/TailRank.git"
8892
)
93+
8994
dir_delete(path(conspicuous_place(), "TailRank"))
9095

9196
## create from repo I do not have push access to

tests/manual/manual-use-course.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ file_delete(cp("rematch2-master.zip"))
2626
# download of a DropBox folder
2727
# usethis-manual-test folder JB created for development
2828
dropbox <- "https://www.dropbox.com/sh/iep7x58py4vpa9n/AAAju4kvYCjjD6s8WJqyICHBa?dl=1"
29-
use_zip(dropbox1, destdir = cp())
30-
expect_true(dir_exists(path(conspicuous_place(), "usethis-manual-test")))
29+
use_zip(dropbox, destdir = cp())
30+
expect_true(dir_exists(cp("usethis-manual-test")))
3131
dir_delete(cp("usethis-manual-test"))
3232
file_delete(cp("usethis-manual-test.zip"))
3333

0 commit comments

Comments
 (0)