From f5673fbd477d0afbb30038264c44823ea20b6b96 Mon Sep 17 00:00:00 2001 From: jomaxro Date: Sun, 26 Feb 2017 17:40:42 -0700 Subject: [PATCH] Remove references to elder The use of the TL4 name Elder was changed in 2014 to Leader. The spec function was changed to `:trust_level_4`, but the it statement was not changed. --- spec/components/validators/post_validator_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/components/validators/post_validator_spec.rb b/spec/components/validators/post_validator_spec.rb index 093cff9ff52..e0f984b1e56 100644 --- a/spec/components/validators/post_validator_spec.rb +++ b/spec/components/validators/post_validator_spec.rb @@ -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)