class RSpec::Core::RakeTask
def spec_command
def spec_command @spec_command ||= begin cmd_parts = [] cmd_parts << RUBY cmd_parts << ruby_opts cmd_parts << "-w" if warning? cmd_parts << "-S" cmd_parts << runner if rcov cmd_parts << ["-Ispec:lib", rcov_opts] else cmd_parts << rspec_opts end cmd_parts << files_to_run if rcov && rspec_opts cmd_parts << ["--", rspec_opts] end cmd_parts.flatten.compact.reject(&blank).join(" ") end end