Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / generators / tagging / templates / tag_test.rb
diff --git a/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tag_test.rb b/vendor/plugins/has_many_polymorphs/generators/tagging/templates/tag_test.rb
new file mode 100644 (file)
index 0000000..7cf39c6
--- /dev/null
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/../test_helper'
+
+class TagTest < Test::Unit::TestCase
+  fixtures :tags, :taggings, <%= taggable_models[0..1].join(", ") -%>
+
+  def test_to_s
+    assert_equal "delicious sexy", <%= model_two -%>.find(2).tags.to_s
+  end
+  
+end