Class: LearnLab::Test::Strategies::None

Inherits:
LearnLab::Test::Strategy show all
Defined in:
lib/learn_lab/test/strategies/none.rb

Overview

Null strategy object used when no test suite is detected.

Instance Attribute Summary

Attributes inherited from LearnLab::Test::Strategy

#fs, #options, #out, #runner

Instance Method Summary collapse

Methods inherited from LearnLab::Test::Strategy

#check_dependencies, #cleanup, #initialize, #output, #result_filename, #results

Constructor Details

This class inherits a constructor from LearnLab::Test::Strategy

Instance Method Details

#parserObject



16
17
18
# File 'lib/learn_lab/test/strategies/none.rb', line 16

def parser
  @parser ||= LearnLab::Test::Parsers::Null.new
end

#runObject



9
10
11
12
13
14
# File 'lib/learn_lab/test/strategies/none.rb', line 9

def run
  out.puts "    This directory doesn't appear to have any specs in it, so\n    there\u2019s no test to run.\n  MSG\nend\n"