mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:32:17 +08:00
Converted flag threshold constants to enums
This commit is contained in:
@ -149,7 +149,7 @@ describe PostAction do
|
||||
post.reload
|
||||
|
||||
post.hidden.should.should be_true
|
||||
post.hidden_reason_id.should == Post::HiddenReason::FLAG_THRESHOLD_REACHED
|
||||
post.hidden_reason_id.should == Post.hidden_reasons[:flag_threshold_reached]
|
||||
post.topic.visible.should be_false
|
||||
|
||||
post.revise(post.user, post.raw + " ha I edited it ")
|
||||
@ -165,14 +165,14 @@ describe PostAction do
|
||||
post.reload
|
||||
|
||||
post.hidden.should be_true
|
||||
post.hidden_reason_id.should == Post::HiddenReason::FLAG_THRESHOLD_REACHED_AGAIN
|
||||
post.hidden_reason_id.should == Post.hidden_reasons[:flag_threshold_reached_again]
|
||||
|
||||
post.revise(post.user, post.raw + " ha I edited it again ")
|
||||
|
||||
post.reload
|
||||
|
||||
post.hidden.should be_true
|
||||
post.hidden_reason_id.should == Post::HiddenReason::FLAG_THRESHOLD_REACHED_AGAIN
|
||||
post.hidden_reason_id.should == Post.hidden_reasons[:flag_threshold_reached_again]
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user