Skip to content

Commit

Permalink
tests: better check of 'git_config_files' repo argument
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>
  • Loading branch information
stewid committed Aug 3, 2018
1 parent 22919dc commit 7e60e8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ stopifnot("local" %in% names(cfg))
stopifnot("user.name" %in% names(cfg$local))
stopifnot(identical(cfg$local$user.name, "Alice"))
stopifnot(identical(cfg$local$user.email, "alice@example.org"))
stopifnot(identical(git_config_files(repo = repo)$local,
git_config_files(repo = NULL)$local))
stopifnot(identical(git_config_files(repo = repo)$local,
git_config_files(repo = repo$path)$local))
if (!is.null(wd))
setwd(wd)

Expand Down

0 comments on commit 7e60e8a

Please sign in to comment.