test/test_helper.rb in m-0.0.1 vs test/test_helper.rb in m-1.0.0.pre

- old
+ new

@@ -1,11 +1,12 @@ -require 'rubygems' require 'test/unit' require 'active_support/test_case' class MTest < Test::Unit::TestCase def m(arguments) - `ruby -Ilib ./bin/m #{arguments} 2>&1`.strip + 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