summaryrefslogtreecommitdiff
path: root/test/tc_highline.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add test for non pagination when same line count of HighLine#page_atAbinoam Praxedes Marques Jr2015-10-091-0/+29
|
* Add test for #168 - raising when quiting pagingAbinoam Praxedes Marques Jr2015-10-091-0/+13
|
* Skip readline test on rubiniusAbinoam Praxedes Marques Jr2015-02-241-0/+8
|
* Normalize to Test::Unit assertionsAbinoam Praxedes Marques Jr2015-02-241-2/+2
|
* Use match to ignore control codes when using Readline modeAbinoam Praxedes Marques Jr2015-02-241-1/+1
|
* Make test/tc_highline work on Ruby pre-2.1.0Eli Young2015-02-201-9/+10
|
* Merge pull request #122 from abinoam/issue_98James Edward Gray II2015-02-021-0/+13
|\ | | | | Issue #98
| * Add fail test for #say handling of non-String objects (#98)Abinoam Praxedes Marques Jr2015-02-021-0/+13
| |
* | Add failing test to #112Abinoam Praxedes Marques Jr2015-02-011-0/+45
|/ | | | | | | When default is: - String, should show default at prompt and return string - Symbol, should show default at prompt (Symbol converted to String) but return Symbol without conversions. - Object (other), should NOT show default at prompt and return the Object without conversions.
* Add failing test for #113 - readline and limit don't work togetherAbinoam Praxedes Marques Jr2015-02-011-1/+63
|
* Merge pull request #119 from abinoam/issue_114James Edward Gray II2015-02-011-0/+24
|\ | | | | Issue #114 - Grey is Gray and Light is Bright
| * Add tests for light is the same as bright - #114Abinoam Praxedes Marques Jr2015-02-011-0/+12
| |
| * Make GREY alias of GRAY - #114Abinoam Praxedes Marques Jr2015-02-011-0/+12
| |
* | Add failing test for #117 - backspace overflow when utf8Abinoam Praxedes Marques Jr2015-02-011-0/+20
| |
* | Add issue #117 failing test - echoing char when multi-byte charcterAbinoam Praxedes Marques Jr2015-02-011-0/+12
| |
* | Add issue #115 test - backspace handling utf-8 charsAbinoam Praxedes Marques Jr2015-01-311-0/+12
| | | | | | | | | | Add a (failing) test for backspace handling when echo is off and characters are utf-8
* | Add test for handling of backspace when echo is false (ascii characters)Abinoam Praxedes Marques Jr2015-01-311-0/+12
| | | | | | | | Related to issue #115
* | Add issue #116 test - correct returned string encodingAbinoam Praxedes Marques Jr2015-01-311-0/+12
|/
* `format_statement` no longer throws an exception when receiving nilmichaeljbishop2014-02-141-0/+5
|
* Restored use of message_source.inspect for nonstrings. Fixed tests to not ↵Keith Bennett2014-01-031-2/+2
| | | | expect colons.
* Add jline to valid CHARACTER_MODE list in testsJustin Collins2013-06-211-1/+2
|
* Add test for frozen statementDāvis2013-06-011-0/+5
|
* Add test for terminal_sizeJustin Collins2013-04-151-0/+5
|
* Add tests for multi-line indentationDāvis2013-02-271-0/+16
|
* Better integration for indentation supportdavispuh2013-02-031-3/+36
|
* Added indentation and newline featuredavispuh2013-02-031-0/+17
|
* Adjusting code indentKenichi Kamiya2013-01-091-3/+3
|
* Tweaked HighLine#say's regex, added testsKenneth Murphy2012-09-191-0/+22
|
* Lists print out empty strings when presented with nil valuesEric Saxby2012-08-311-0/+8
|
* Remove shebangs. Fix shebang-spec.Scott Gonyea2012-06-121-4/+0
|
* Change shebangs to use /usr/bin/env to find the ruby.Scott Gonyea2012-06-121-2/+2
|
* Add typing verification through multiple matching entriesmichael2012-05-131-4/+61
| | | | | | | | | | Setting verify_match on a question will allow for "please type it in again for verification" style entries, such as commonly seen when setting/changing passwords, etc. This leverages the existing gather mechanism to control asking for multiple entries, but returns a single answer once all gathered entries match.
* Duplicate the string passed in to Question.newmichael2012-05-131-1/+13
| | | | | The question string is modified by some of the methods in Question, so use a copy of the original string.
* Fix version tests for multi-digit components.Diego Elio Pettenò2012-01-241-1/+1
|
* Fixing a regression.James Edward Gray II2012-01-081-0/+10
|
* Adding uneven column modes for lists.James Edward Gray II2011-11-041-3/+35
|
* Simplify :inline mode logic in HighLine#listLachlan Dowding2011-07-111-2/+44
| | | | | The case when items.size == 2 is not needed because ['a'].join(', ') == 'a' not 'a, ', therefore we can replace the case statement with a simpler if/else statement.
* Fix HighLine#list empty item array test to work correctlyLachlan Dowding2011-07-111-2/+2
|
* Handle empty items consistently in HighLine#listLachlan Dowding2011-07-111-2/+11
| | | | | | | | | | | | | Without this patch HighLine#list throws an error when called with an empty items array and a :columns_across or :columns_down mode. For example HighLine.new.list([], :columns_across) results in: NoMethodError: private method `gsub' called for nil:NilClass actual_length at .../highline-1.6.2/lib/highline.rb:761 list at .../highline-1.6.2/lib/highline.rb:394 This patch fixes this error so that HighLine#list always returns an empty string when called with an empty items array, regardless of mode.
* Add tests for convenience methods and String extensionsRichard LeBer2011-06-271-0/+8
|
* Add uncolor method and testsRichard LeBer2011-06-271-0/+28
|
* Refactor rgb colors using const_missing. Add rgb color tests. Bug fixes -- ↵Richard LeBer2011-06-271-0/+10
| | | | all tests now pass
* fix test of test_mode, include 'ncurses'Stephen Bannasch2009-10-061-1/+1
| | | | | | | | | | | | | | | | | | | The tests all complete successfully in JRuby only if I make sure rubygems is loaded by adding: require 'rubygems' To the test code. Currently there is a bug in JRuby's processing of RUBYOPT http://jira.codehaus.org/browse/JRUBY-4060 so just setting: export RUBYOPT=rubygems doesn't solve the problem.
* changed the test_type_conversion test so that it wouldn't fail with ruby 1.9Jake Benilov2009-03-271-2/+2
| | | | the failure was caused by a change in what kind of format Date#parse accepted
* restructuringGregory Brown2009-02-021-0/+823