File: test_helper.rb

package info (click to toggle)
ruby-highline 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: ruby: 5,789; sh: 7; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env ruby
# coding: utf-8

require "English"

# Run code coverage only for mri
require "simplecov" if RUBY_ENGINE == "ruby"

# Compatibility module for StringIO, File
# and Tempfile. Necessary for some tests.
require "highline/io_console_compatible"

require "highline"

debug_message = <<~DEBUG_MESSAGE
  Tests will be run under:
    - #{HighLine.new.terminal.class}
    - HighLine::VERSION #{HighLine::VERSION}
DEBUG_MESSAGE

debug_message += "  - #{RUBY_DESCRIPTION}\n" if defined? RUBY_DESCRIPTION
puts debug_message

require "minitest/autorun"