@@ -17,7 +17,7 @@ test_that("project_path() uses Quarto environment variables", {
1717 withr :: local_dir(temp_dir )
1818 dir.create(" project" )
1919 withr :: with_envvar(
20- list (
20+ c (
2121 QUARTO_PROJECT_ROOT = xfun :: normalize_path(file.path(
2222 temp_dir ,
2323 " project"
@@ -30,13 +30,13 @@ test_that("project_path() uses Quarto environment variables", {
3030 )
3131 )
3232 withr :: with_envvar(
33- list (
33+ c (
3434 QUARTO_PROJECT_ROOT = " " ,
3535 QUARTO_PROJECT_DIR = xfun :: normalize_path(file.path(temp_dir , " project" ))
3636 ),
3737 {
3838 expect_identical(
39- get_running (),
39+ get_running_project_root (),
4040 xfun :: normalize_path(file.path(temp_dir , " project" ))
4141 )
4242
@@ -133,31 +133,31 @@ test_that("project_path() handles xfun::proj_root() errors gracefully", {
133133
134134test_that(" is_running_quarto_project() detects environment variables" , {
135135 withr :: with_envvar(
136- list (
136+ c (
137137 QUARTO_PROJECT_ROOT = " " ,
138138 QUARTO_PROJECT_DIR = " "
139139 ),
140140 expect_null(get_running_project_root())
141141 )
142142
143143 withr :: with_envvar(
144- list (
144+ c (
145145 QUARTO_PROJECT_ROOT = " /some/path" ,
146146 QUARTO_PROJECT_DIR = " "
147147 ),
148148 expect_identical(get_running_project_root(), " /some/path" )
149149 )
150150
151151 withr :: with_envvar(
152- list (
152+ c (
153153 QUARTO_PROJECT_ROOT = " " ,
154154 QUARTO_PROJECT_DIR = " /some/path"
155155 ),
156156 expect_identical(get_running_project_root(), " /some/path" )
157157 )
158158
159159 withr :: with_envvar(
160- list (
160+ c (
161161 QUARTO_PROJECT_ROOT = " /path1" ,
162162 QUARTO_PROJECT_DIR = " /path2"
163163 ),
0 commit comments