Skip to content

Commit

Permalink
Attempt fixing windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Mar 21, 2024
1 parent 631b926 commit 21d7660
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/testthat/test-get_package_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ expect_package_info <- function(
)
testthat::expect_match(
package_info[[package_identical]][["remotepkgref"]],
remotepkgref_match
# gsub is used to make windows path work
gsub(
x = remotepkgref_match,
pattern = "\\",
replacement = "\\\\",
fixed = TRUE
)
)
testthat::expect_identical(
package_info[[package_identical]][["remoteref"]],
Expand Down

0 comments on commit 21d7660

Please sign in to comment.