Class: Frameworks::RubyCutest
- Inherits:
-
Object
- Object
- Frameworks::RubyCutest
- Includes:
- Base
- Defined in:
- lib/soundcheck/frameworks/ruby_cutest.rb
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#command(*args) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/soundcheck/frameworks/ruby_cutest.rb', line 19 def command(*args) args = (args.empty? ? default_args : filter(*args)) return nil if args.empty? "cutest #{args.join(" ")}".strip end |
#default_args ⇒ Object
15 16 17 |
# File 'lib/soundcheck/frameworks/ruby_cutest.rb', line 15 def default_args ["test/*.rb"] end |
#filter(*args) ⇒ Object
9 10 11 12 13 |
# File 'lib/soundcheck/frameworks/ruby_cutest.rb', line 9 def filter(*args) filter_with(args, { :is_in_test_dir => /^test\// }) end |
#present? ⇒ Boolean
5 6 7 |
# File 'lib/soundcheck/frameworks/ruby_cutest.rb', line 5 def present? project.has_file?("Rakefile") and project.file_contents("Rakefile") =~ /Cutest\.run/ end |