Permalink
Browse files

add test/runner script and fix autorun test

  • Loading branch information...
1 parent dbe8315 commit 1824b8f747e7281cddc87e29c748e5c23f375b8b @trans trans committed Jul 9, 2010
Showing with 4 additions and 2 deletions.
  1. +2 −0 test/runner
  2. +2 −2 test/test_runners.rb
View
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+ruby -Ilib bin/turn -Ilib test/*.rb
View
@@ -24,7 +24,7 @@ def test_cross
def test_autorun
file = setup_test('Test', 'turn', 'test_autorun.rb')
- result = `ruby #{file} 2>&1`
+ result = `ruby -Ilib #{file} 2>&1`
assert(result.index('pass: 1'))
assert(result.index('fail: 0'))
assert(result.index('error: 0'))
@@ -34,7 +34,7 @@ def test_autorun
def test_autorun
file = setup_minitest_autorun
- result = `ruby #{file} 2>&1`
+ result = `ruby -Ilib #{file} 2>&1`
assert result.index('0 failures')
assert result.index('0 errors')
end

0 comments on commit 1824b8f

Please sign in to comment.