class Frameworks::RubyCutest
Public Instance Methods
command(*args)
click to toggle source
# 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()
click to toggle source
# File lib/soundcheck/frameworks/ruby_cutest.rb, line 15 def default_args ["test/*.rb"] end
filter(*args)
click to toggle source
# File lib/soundcheck/frameworks/ruby_cutest.rb, line 9 def filter(*args) filter_with(args, { :is_in_test_dir => /^test\// }) end
present?()
click to toggle source
# File lib/soundcheck/frameworks/ruby_cutest.rb, line 5 def present? project.has_file?("Rakefile") and project.file_contents("Rakefile") =~ /Cutest\.run/ end