2 # Run tests against all Rails versions
4 VENDOR_DIR = File.expand_path("~/Desktop/projects/vendor/rails")
6 HERE = File.expand_path(File.dirname(__FILE__))
8 Dir["#{VENDOR_DIR}/*"].each do |dir|
9 puts "\n\n**** #{dir} ****\n\n"
10 Dir.chdir "#{HERE}/integration/app/vendor" do
11 system("rm rails; ln -s #{dir} rails")
13 system("ruby #{HERE}/unit/polymorph_test.rb")
16 system("rm #{HERE}/integration/app/vendor; svn up #{HERE}/integration/app/vendor")