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:
parent
945a99e81a
commit
c681af3e5d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user