Class: Spout::Commands::TestRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/spout/commands/test_runner.rb

Overview

Runs spout tests.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



8
9
10
# File 'lib/spout/commands/test_runner.rb', line 8

def run
  new.run
end

Instance Method Details

#runObject



13
14
15
16
17
18
# File 'lib/spout/commands/test_runner.rb', line 13

def run
  $LOAD_PATH.unshift File.join(Dir.pwd, "test")
  Dir.glob(test_files, File::FNM_CASEFOLD).each do |test_file|
    require test_file
  end
end

#test_filesObject



20
21
22
# File 'lib/spout/commands/test_runner.rb', line 20

def test_files
  File.join(Dir.pwd, "test", "*_test.rb")
end