diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-03-15 02:45:18 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-04-29 23:43:27 -0300 |
commit | bb00b15f584481aac06958f1aae3b34c69127ea9 (patch) | |
tree | 20217c60af363021c0b5a3222fdb993a79460de5 /test/test_highline.rb | |
parent | 71362b6e74b5d1bff6f6df38eb91965fa4398661 (diff) | |
download | highline-bb00b15f584481aac06958f1aae3b34c69127ea9.tar.gz |
Move paging test to its own file
Diffstat (limited to 'test/test_highline.rb')
-rwxr-xr-x | test/test_highline.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/test_highline.rb b/test/test_highline.rb index e114110..987eec6 100755 --- a/test/test_highline.rb +++ b/test/test_highline.rb @@ -964,21 +964,6 @@ class TestHighLine < Minitest::Test assert_equal("Type: ****\n", @output.string) assert_equal("maçã", answer) end - - def test_paging - @terminal.page_at = 22 - - @input << "\n\n" - @input.rewind - - @terminal.say((1..50).map { |n| "This is line #{n}.\n"}.join) - assert_equal( (1..22).map { |n| "This is line #{n}.\n"}.join + - "\n-- press enter/return to continue or q to stop -- \n\n" + - (23..44).map { |n| "This is line #{n}.\n"}.join + - "\n-- press enter/return to continue or q to stop -- \n\n" + - (45..50).map { |n| "This is line #{n}.\n"}.join, - @output.string ) - end def test_range_requirements @input << "112\n-541\n28\n" |