Class: Autotest::Bacon
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Bacon
constructor
A new instance of Bacon.
- #make_test_cmd(files_to_test) ⇒ Object
Constructor Details
#initialize ⇒ Bacon
Returns a new instance of Bacon.
25 26 27 28 |
# File 'lib/autotest/bacon.rb', line 25 def initialize super self.libs = %w[. lib test spec].join(File::PATH_SEPARATOR) end |
Instance Method Details
#make_test_cmd(files_to_test) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/autotest/bacon.rb', line 30 def make_test_cmd(files_to_test) args = files_to_test.keys.flatten.join(' ') args = '-a' if args.empty? # TODO : make regex to pass to -n using values "#{ruby} -S bacon -I#{libs} -o TestUnit #{args}" end |