fixed unit tests

This commit is contained in:
albert
2011-01-22 03:01:15 -05:00
parent 6824e98af3
commit c5a9067e72
6 changed files with 157 additions and 100 deletions

View File

@@ -23,13 +23,10 @@ class PoolTest < ActiveSupport::TestCase
user = Factory.create(:user)
assert_equal(1, pool.versions(true).size)
pool.post_ids = "1"
pool.updater_id = user.id
pool.updater_ip_addr = "128.0.0.1"
CurrentUser.ip_addr = "1.2.3.4"
pool.save
assert_equal(2, pool.versions(true).size)
pool.post_ids = "1 2"
pool.updater_id = user.id
pool.updater_ip_addr = "128.0.0.1"
pool.save
assert_equal(2, pool.versions(true).size)
pool.revert_to!(PoolVersion.first)