Merge pull request #4725 from jomaxro/patch-2

Remove references to elder
This commit is contained in:
Guo Xiang Tan 2017-02-27 11:50:48 +08:00 committed by GitHub
commit 82595bc1ab

View File

@ -63,7 +63,7 @@ describe Validators::PostValidator do
expect(post.errors.count).to be > 0
end
it "should be invalid when elder user exceeds max mentions limit" do
it "should be invalid when leader user exceeds max mentions limit" do
post.acting_user = build(:trust_level_4)
post.expects(:raw_mentions).returns(['jake', 'finn', 'jake_old', 'jake_new'])
validator.max_mention_validator(post)
@ -85,7 +85,7 @@ describe Validators::PostValidator do
expect(post.errors.count).to be(0)
end
it "should be valid when elder user does not exceed max mentions limit" do
it "should be valid when leader user does not exceed max mentions limit" do
post.acting_user = build(:trust_level_4)
post.expects(:raw_mentions).returns(['jake', 'finn', 'jake_old'])
validator.max_mention_validator(post)