Sha256: e098022660e152318101a188fbe26e2ab576e0b58f5084bdfae72a6eab1cce5d
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
# coding: utf-8 begin require 'rubygems' require 'minitest/unit' require 'minitest/spec' require 'flexmock' rescue LoadError => e $stderr.puts 'To run the unit tests, you need minitest and flexmock.' raise e end # Run a test automaticaly MiniTest::Unit.autorun # Load misc require 'digest/sha1' module ThinReports::TestHelpers include FlexMock::TestCase def clean_whitespaces(str) str.gsub(/^\s*|\n\s*/, '') end def skip_if_ruby19 if RUBY_VERSION > '1.9' skip('This test is not required more than Ruby 1.9.') end end def skip_if_ruby18 if RUBY_VERSION < '1.9' skip('This test is not required Ruby 1.8 below.') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.6.0.pre3 | test/unit/helper.rb |