Sha256: f5234b97a9671382aa799fce602cd02a37558d0f1680f95c5af8e0c5ffded1f5
Contents?: true
Size: 352 Bytes
Versions: 4
Compression:
Stored size: 352 Bytes
Contents
require 'test/unit' require 'active_support/test_case' class MTest < Test::Unit::TestCase def m(arguments) Dir.chdir("test") do `ruby -I../lib -I. ../bin/m #{arguments} 2>&1`.strip end end def assert_output(regexp, output) assert $?.success?, "Execution failed, output:\n\n#{output}" assert_match regexp, output end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
m-1.1.0 | test/test_helper.rb |
m-1.0.1 | test/test_helper.rb |
m-1.0.0 | test/test_helper.rb |
m-1.0.0.pre | test/test_helper.rb |