Rspec rake task
@see Rakefile
Default pattern for spec files.
Default path to the rspec executable
# File lib/rspec/core/rake_task.rb, line 69 def initialize(*args, &task_block) @name = args.shift || :spec @ruby_opts = nil @rspec_opts = nil @verbose = true @fail_on_error = true @rspec_path = DEFAULT_RSPEC_PATH @pattern = DEFAULT_PATTERN define(args, &task_block) end
@private
# File lib/rspec/core/rake_task.rb, line 82 def run_task(verbose) command = spec_command begin puts command if verbose success = system(command) rescue puts failure_message if failure_message end if fail_on_error && !success $stderr.puts "#{command} failed" exit $?.exitstatus end end
Generated with the Darkfish Rdoc Generator 2.