Skip to content

Commit

Permalink
Reject empty lines in IRB binding spec
Browse files Browse the repository at this point in the history
For that particular spec, the empty lines' presence is not relevant.
So let's remove them to make the spec easier to maintain.
  • Loading branch information
st0012 authored and peterzhu2118 committed May 2, 2024
1 parent 945a99e commit c681af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/core/binding/irb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
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

Expand Down

0 comments on commit c681af3

Please sign in to comment.