Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / test / setup.rb
diff --git a/vendor/plugins/has_many_polymorphs/test/setup.rb b/vendor/plugins/has_many_polymorphs/test/setup.rb
new file mode 100644 (file)
index 0000000..8e7baad
--- /dev/null
@@ -0,0 +1,10 @@
+
+# Setup integration system for the integration suite
+
+Dir.chdir "#{File.dirname(__FILE__)}/integration/app/" do
+  Dir.chdir "vendor/plugins" do
+    system("rm has_many_polymorphs; ln -s ../../../../../ has_many_polymorphs")
+  end
+  system("rake db:create")
+  system("rake db:migrate db:fixtures:load")
+end