Skip to content

Commit

Permalink
Assert different screen result on CI and local machine
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jul 12, 2023
1 parent 91f5285 commit a109ca9
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions test/irb/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,22 @@ def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_right
start_terminal(4, 19, %W{ruby -I/home/aycabta/ruby/reline/lib -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write("Str\C-i")
close
assert_screen(<<~EOC)
start IRB
001> String
StringPress O
StructString
EOC

if ENV['CI']
assert_screen(<<~EOC)
start IRB
001> String
StringPress A
StructString
EOC
else
assert_screen(<<~EOC)
start IRB
001> String
StringPress O
StructString
EOC
end
end

def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_left
Expand Down

0 comments on commit a109ca9

Please sign in to comment.