Class: MiniTestRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/gorgon/mini_test_runner.rb

Class Method Summary collapse

Class Method Details

.run_file(filename) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/gorgon/mini_test_runner.rb', line 13

def run_file(filename)
  forget_previous_tests
  MiniTest::Unit.runner = MiniTestUnitRunner.new
  load filename
  MiniTest::Unit.runner.run

  MiniTest::Unit.runner.report
end

.runnerObject



22
23
24
# File 'lib/gorgon/mini_test_runner.rb', line 22

def runner
  :minitest
end