Skip to content

Commit

Permalink
Add RStudio autosave settings to postCreate test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongmassey committed Jul 23, 2024
1 parent 6e46894 commit 9908eb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ opensafely --version
# check R working directory
[ "$(Rscript -e 'getwd()')" == '[1] "/tmp/testdir"' ]

# check Rstudio working directory
# check Rstudio preferences
[ "$(jq '.initial_working_directory' < ~/.config/rstudio/rstudio-prefs.json )" == '"/tmp/testdir"' ]
[ "$(jq '.auto_save_on_blur' < ~/.config/rstudio/rstudio-prefs.json )" == 'true' ]
[ "$(jq '.auto_save_on_idle' < ~/.config/rstudio/rstudio-prefs.json )" == '"commit"' ]


# check preexisting Rstudio preference
[ "$(jq '.posix_terminal_shell' < ~/.config/rstudio/rstudio-prefs.json )" == '"bash"' ]
Expand Down

0 comments on commit 9908eb2

Please sign in to comment.