# File lib/rspec/core/configuration.rb, line 331 def get_files_to_run(files) patterns = pattern.split(",") files.map do |file| if File.directory?(file) patterns.map do |pattern| if pattern =~ /^#{file}/ Dir[pattern.strip] else Dir["#{file}/{#{pattern.strip}}"] end end else if file =~ /^(.*?)((?:\:\d+)+)$/ path, lines = $1, $2[1..-1].split(":").map{|n| n.to_i} add_location path, lines path else file end end end.flatten end