Skip to content

Instantly share code, notes, and snippets.

@jonatas
Created May 20, 2009 12:51
Show Gist options
  • Save jonatas/114794 to your computer and use it in GitHub Desktop.
Save jonatas/114794 to your computer and use it in GitHub Desktop.
Dir['*_test.rb'].each do |file|
puts file
linhas = File.readlines(file)
File.open(file, 'w+') do |f|
f.puts(linhas.collect do |linha|
linha.gsub(/Test::Unit::TestCase/,'ActiveSupport::TestCase')
end)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment