This method is deprecated or moved on the latest stable version.
The last existing version (1.1.4) is shown here.
spec_command(separator=File::ALT_SEPARATOR)
public
Finds the proper spec command to use. Precendence is set in the
lazily-evaluated method spec_commands. Alias +
Override that in ~/.autotest to provide a different spec command then the
default paths provided.
# File lib/autotest/rspec.rb, line 50
def spec_command(separator=File::ALT_SEPARATOR)
unless defined? @spec_command then
@spec_command = spec_commands.find { |cmd| File.exists? cmd }
raise RspecCommandError, "No spec command could be found!" unless @spec_command
@spec_command.gsub! File::SEPARATOR, separator if separator
end
@spec_command
end