Sha256: 650a065972ba858a6cfb3a69232bb043842c4d8375055308850d19deb9482cf6
Contents?: true
Size: 370 Bytes
Versions: 5
Compression:
Stored size: 370 Bytes
Contents
require './lib/m' 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
m-1.3.2 | test/test_helper.rb |
m-1.3.1 | test/test_helper.rb |
m-1.3.0 | test/test_helper.rb |
m-1.2.1 | test/test_helper.rb |
m-1.2.0 | test/test_helper.rb |