spec icon indicating copy to clipboard operation
spec copied to clipboard

Improve irb_spec's home setup

Open st0012 opened this issue 1 year ago • 2 comments

Before v1.12, IRB avoids loading ~/.irbrc if the project folder has a .irbrc file. So to avoid loading dev's ~/.irbrc, cfe908c added an empty irbrc fixture as a workaround.

However, because IRB v1.12 starts loading ~/.irbrc even if the project folder has a .irbrc file, the workaround no longer works.

This commit removes the workaround and uses altering HOME environment variable to avoid loading .irbrc from devs' home directory instead.

st0012 avatar Mar 07 '24 05:03 st0012

Don't IRBRC and XDG_CONFIG_HOME need to be set or cleared too?

nobu avatar Mar 09 '24 05:03 nobu

Could we use irb's -f flag or similar to skip irbrc's?

eregon avatar Mar 11 '24 12:03 eregon