added tests for post sets

This commit is contained in:
albert
2011-06-11 17:05:46 -04:00
parent ca7afc10be
commit 1a303fd3db
7 changed files with 202 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ class Pool < ActiveRecord::Base
def revert_to!(version)
self.post_ids = version.post_ids
synchronize_posts!
synchronize!
end
def contains?(post_id)
@@ -96,7 +96,7 @@ class Pool < ActiveRecord::Base
end
end
def synchronize_posts!
def synchronize!
added = post_id_array - post_id_array_was
removed = post_id_array_was - post_id_array