File: test_helper.rb

package info (click to toggle)
ruby-barby 0.6.8%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: ruby: 4,169; java: 1,228; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 508 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
require 'rubygems'
require 'barby'
require 'minitest/autorun'
require 'minitest/spec'

module Barby
  class TestCase < Minitest::Spec

    include Barby

    private

    # So we can register outputter during an full test suite run.
    def load_outputter(outputter)
      @loaded_outputter ||= load "barby/outputter/#{outputter}_outputter.rb"
    rescue LoadError => e
      skip "#{outputter} not being installed properly"
    end

    def ruby_19_or_greater?
      RUBY_VERSION >= '1.9'
    end
  end
end