Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (12 sloc) 0.291 kb
#!/usr/bin/env ruby
filename = ARGV[0]
line_number = ARGV[1].to_i
lines = File.read(filename).split(/\n/)
(line_number - 1).downto(0) do |i|
if lines[i] =~ /\s*def (test\S*)/
cmd = %{rake test TEST="#{filename}" TESTOPTS="--name=#{$1}"}
puts cmd
system cmd
exit
end
end
Jump to Line
Something went wrong with that request. Please try again.