mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
Convert Post type constants to Enum
This commit is contained in:
@ -579,7 +579,7 @@ describe Post do
|
||||
end
|
||||
|
||||
it 'is of the regular post type' do
|
||||
post.post_type.should == Post::REGULAR
|
||||
post.post_type.should == Post.types[:regular]
|
||||
end
|
||||
|
||||
it 'has no versions' do
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user