Created
May 20, 2009 12:51
-
-
Save jonatas/114794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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