Skip to content

Commit ff42ce2

Browse files
committed
Revert "try fix mac os test by changing expected value to computed relative path"
This reverts commit 183effb.
1 parent 09701ae commit ff42ce2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/testthat/test-utils-projects.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ test_that("project_path() works with explicit root", {
33
withr::local_dir(temp_dir)
44
expect_identical(
55
project_path("data", "file.csv", root = temp_dir),
6-
xfun::relative_path(file.path("data", "file.csv"), dir = temp_dir)
6+
file.path("data", "file.csv")
77
)
88
expect_identical(
99
project_path("outputs", "figures", "plot.png", root = temp_dir),
10-
xfun::relative_path(
11-
file.path("outputs", "figures", "plot.png"),
12-
dir = temp_dir
13-
)
10+
file.path("outputs", "figures", "plot.png")
1411
)
1512
expect_identical(project_path(root = temp_dir), ".")
1613
})

0 commit comments

Comments
 (0)