-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c9aec1e
commit eb15a1e
Showing
5 changed files
with
45 additions
and
14 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -166,11 +166,24 @@ test_that("git_remote returns the url", { | |
remote <- git_remote(url) | ||
expect_equal(remote$url, "[email protected]:cran/falsy.git") | ||
|
||
# works with ref (git protocal) | ||
# works with ref (git protocol) | ||
url <- "[email protected]:cran/falsy.git@master" | ||
remote <- git_remote(url) | ||
expect_equal(remote$url, "[email protected]:cran/falsy.git") | ||
expect_equal(remote$ref, "master") | ||
|
||
url <- "ssh://[email protected]:7999/proj/name.git" | ||
remote <- git_remote(url) | ||
expect_equal(remote$url, "ssh://[email protected]:7999/proj/name.git") | ||
|
||
url <- "ssh://[email protected]:7999/proj/name.git@fixup/issue" | ||
remote <- git_remote(url) | ||
expect_equal(remote$url, "ssh://[email protected]:7999/proj/name.git") | ||
expect_equal(remote$ref, "fixup/issue") | ||
|
||
url <- "https://[email protected]/someuser/MyProject/_git/MyPackage" | ||
remote <- git_remote(url) | ||
expect_equal(remote$url, "https://[email protected]/someuser/MyProject/_git/MyPackage") | ||
}) | ||
|
||
test_that("remote_package_name.git2r_remote returns the package name if it exists", { | ||
|