Class: Spout::Commands::TestRunner
- Inherits:
-
Object
- Object
- Spout::Commands::TestRunner
- Defined in:
- lib/spout/commands/test_runner.rb
Overview
Runs spout tests.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
8 9 10 |
# File 'lib/spout/commands/test_runner.rb', line 8 def run new.run end |
Instance Method Details
#run ⇒ Object
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_files ⇒ Object
20 21 22 |
# File 'lib/spout/commands/test_runner.rb', line 20 def test_files File.join(Dir.pwd, "test", "*_test.rb") end |