Prettify the login page
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / test_all.rb
1
2 # Run tests against all Rails versions
3
4 VENDOR_DIR = File.expand_path("~/Desktop/projects/vendor/rails")
5
6 HERE = File.expand_path(File.dirname(__FILE__))
7
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")    
12   end
13   system("ruby #{HERE}/unit/polymorph_test.rb")
14 end
15
16 system("rm #{HERE}/integration/app/vendor; svn up #{HERE}/integration/app/vendor")