tests: add favorite groups controller tests.

This commit is contained in:
evazion
2017-02-05 01:32:09 -06:00
parent ed451b7199
commit 64b4004bbf
4 changed files with 87 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ class FavoriteGroup < ActiveRecord::Base
end
def initialize_creator
self.creator_id = CurrentUser.id
self.creator_id ||= CurrentUser.id
end
def strip_name
@@ -214,6 +214,7 @@ class FavoriteGroup < ActiveRecord::Base
super
@neighbor_posts = nil
clear_post_id_array
self
end
def last_page