new(name=:spec)
public
Defines a new task, using
the name name.
Show source
def initialize(name=:spec)
@name = name
@libs = ['lib']
@pattern = nil
@spec_files = nil
@spec_opts = []
@warning = false
@ruby_opts = []
@fail_on_error = true
@rcov = false
@rcov_opts = ['--exclude', 'lib\/spec,bin\/spec,config\/boot.rb']
@rcov_dir = "coverage"
yield self if block_given?
@pattern = 'spec/**/*_spec.rb' if pattern.nil? && spec_files.nil?
define
end