Convert Post type constants to Enum

This commit is contained in:
Robin Ward
2013-03-18 16:03:46 -04:00
parent 897d48b145
commit c1e40f5d19
6 changed files with 11 additions and 10 deletions

View File

@ -514,7 +514,7 @@ describe Topic do
end
it 'has the moderator action type' do
@mod_post.post_type.should == Post::MODERATOR_ACTION
@mod_post.post_type.should == Post.types[:moderator_action]
end
it 'increases the moderator_posts count' do