You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error was introduced in commit 7061b06
where readline specs fail because `require "readline"` is be called after the
spec has established a mock `::Readline`. Prior to that change
`require "readline"` was always only called once.
This patch:
* memoizes the `require` to ensure that it only happens once
* leaves the `Object.const_defined?` check in place to keep tests simple
* eagerly calls `available?` in the readline spec to match the original
author's intent by requiring `readline` before the specs start.
0 commit comments