Skip to content

Commit 716b703

Browse files
committed
Fix this test on Windows
In my VM, `prefs` has other components: * initial_working_directory * windows_terminal_shell So let's just test the parts we care about
1 parent 57e6c26 commit 716b703

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/testthat/test-rstudio.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ test_that("use_blank_state() modifies user-level RStudio prefs", {
8888

8989
use_blank_slate()
9090

91-
expect_equal(rstudio_prefs_read(), list(
92-
save_workspace = "never",
93-
load_workspace = FALSE
94-
))
91+
prefs <- rstudio_prefs_read()
92+
expect_equal(prefs[["save_workspace"]], "never")
93+
expect_false(prefs[["load_workspace"]])
9594
})

0 commit comments

Comments
 (0)