Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alternate hosts #1253

Merged
merged 10 commits into from
Mar 17, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename file
hadley committed Mar 16, 2020
commit f7ff2527b7aea37271a25cb885eeea67dc61780b
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions tests/testthat/test-github.R → tests/testthat/test-repo.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
context("test-github")

# repo_auto_link ---------------------------------------------------------

test_that("authors are automatically linked", {
@@ -24,7 +22,7 @@ test_that("issues are automatically linked", {
test_that("repo_source() truncates automatically", {
pkg <- list(repo = repo_meta("https://github.com/r-lib/pkgdown/blob/master"))

verify_output(test_path("test-github-source.txt"), {
verify_output(test_path("test-repo-source.txt"), {
cat(repo_source(pkg, character()))
cat(repo_source(pkg, "a"))
cat(repo_source(pkg, letters[1:10]))