Skip to content

Prevent irb_history's creation during HistoryTest - #893

Merged
st0012 merged 1 commit into
masterfrom
fix-history-tests
Mar 6, 2024
Merged

st0012 merged 1 commit into
masterfrom
fix-history-tests

Conversation

@st0012

@st0012 st0012 commented Mar 6, 2024

Copy link
Copy Markdown
Member

Some cases of it currently create ~/.irb_history files unintentionally while others don't. This is caused by the varying levels of setup/cleanup between them. This commit fixes the issue by wrapping every single test inside a consistent test setup and teardown callbacks.

Some cases of it currently create `~/.irb_history` files unintentionally
while others don't. This is caused by the varying levels of setup/cleanup between
them. This commit fixes the issue by wrapping every single test inside a
consistent test setup and teardown callbacks.
@st0012
st0012 requested a review from tompng March 6, 2024 03:44
@st0012

st0012 commented Mar 6, 2024

Copy link
Copy Markdown
Member Author

Merging this first to fix Ruby CI failures.

@st0012
st0012 merged commit a2a3cbb into master Mar 6, 2024
@st0012
st0012 deleted the fix-history-tests branch March 6, 2024 04:12
matzbot pushed a commit to ruby/ruby that referenced this pull request Mar 6, 2024
(ruby/irb#893)

Some cases of it currently create `~/.irb_history` files unintentionally
while others don't. This is caused by the varying levels of setup/cleanup between
them. This commit fixes the issue by wrapping every single test inside a
consistent test setup and teardown callbacks.

ruby/irb@a2a3cbb0ef
@nobu nobu mentioned this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant