new(name=:spec)
public
Defines a new task, using
the name name.
Show source
def initialize(name=:spec)
@name = name
@libs = [File.expand_path(File.dirname(__FILE__) + '/../../../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