diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-10-19 00:11:45 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 00:11:45 -0300 |
commit | 46e6bba20ab921cb5600ae60e640bf2417f64efc (patch) | |
tree | ffa1c73ce4c9f4d3e74594280f3d9b60e3aae377 /test | |
parent | d53851be0d545453e58439c8faca98f4fbdebf40 (diff) | |
parent | f1a0800d86b0f8d3c2c6e3842ea4cbb2504ac92a (diff) | |
download | highline-46e6bba20ab921cb5600ae60e640bf2417f64efc.tar.gz |
Merge pull request #218 from JEG2/highline_use_colorv2.0.0.pre.develop.12
Ease transition from 1.7.x to 2.0.x (specially for travis.rb)
Diffstat (limited to 'test')
-rw-r--r-- | test/io_console_compatible.rb | 37 | ||||
-rw-r--r-- | test/test_helper.rb | 2 |
2 files changed, 1 insertions, 38 deletions
diff --git a/test/io_console_compatible.rb b/test/io_console_compatible.rb deleted file mode 100644 index 7ff06f5..0000000 --- a/test/io_console_compatible.rb +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -require "stringio" -require "tempfile" - -# -# On tests, we try to simulate input output with -# StringIO, Tempfile and File objects. -# -# For this to be accomplished, we have to do some -# tweaking so that they respond adequately to the -# called methods during tests. -# - -module IOConsoleCompatible - def getch - getc - end - - attr_accessor :echo - - def winsize - [24, 80] - end -end - -class Tempfile - include IOConsoleCompatible -end - -class File - include IOConsoleCompatible -end - -class StringIO - include IOConsoleCompatible -end diff --git a/test/test_helper.rb b/test/test_helper.rb index 0273900..32bfcb8 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,7 +8,7 @@ require "simplecov" if RUBY_ENGINE == "ruby" # Compatibility module for StringIO, File # and Tempfile. Necessary for some tests. -require "io_console_compatible" +require "highline/io_console_compatible" require "highline" debug_message = "Tests will be run under:\n" |