Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / generators / commenting / templates / comment_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class CommentTest < Test::Unit::TestCase
4   fixtures :comments, :commentings, <%= commentable_models[0..1].join(", ") -%>
5
6   def test_to_s
7     assert_equal "no1@nowhere.com", <%= model_two -%>.find(2).comments.first.email
8     assert_equal "http://letrails.cn", <%= model_two -%>.find(2).comments.last.url
9     assert_equal "http://fr.ivolo.us", <%= model_two -%>.find(2).comments.first.url
10   end
11   
12 end