added pool unit test

This commit is contained in:
albert
2010-02-13 05:11:27 -05:00
parent 1ae93aecd7
commit 3d9d6e229a
6 changed files with 137 additions and 10 deletions

View File

@@ -45,6 +45,10 @@ class PostTest < ActiveSupport::TestCase
assert_equal(2, @post.versions.size)
assert_equal(@user.id, @post.versions.last.updater_id)
assert_equal("125.0.0.0", @post.versions.last.updater_ip_addr)
@post.revert_to!(PostVersion.first)
assert_equal("tag1 tag2", @post.tag_string)
assert_equal("q", @post.rating)
end
end