Reject empty lines in IRB binding spec

For that particular spec, the empty lines' presence is not relevant.
So let's remove them to make the spec easier to maintain.
This commit is contained in:
Stan Lo 2024-05-02 18:50:39 +01:00 committed by Peter Zhu
parent 945a99e81a
commit c681af3e5d

View File

@ -10,7 +10,7 @@ describe "Binding#irb" do
IO.popen([envs, *ruby_exe, irb_fixture, chdir: dir], "r+") do |pipe|
pipe.puts "a ** 2"
pipe.puts "exit"
pipe.readlines.map(&:chomp)
pipe.readlines.map(&:chomp).reject(&:empty?)
end
end