posts: allow new accounts to remove tags.

Remove the rule that new accounts can't remove tags (except for tagme
and *_request tags) until their account is a week old.
This commit is contained in:
evazion
2020-08-04 11:53:20 -05:00
parent bfdc13a4bb
commit 3440010310
2 changed files with 0 additions and 24 deletions

View File

@@ -569,24 +569,6 @@ class PostTest < ActiveSupport::TestCase
@post = FactoryBot.create(:post)
end
context "as a new user" do
setup do
@post.update(:tag_string => "aaa bbb ccc ddd tagme")
CurrentUser.user = FactoryBot.create(:user)
end
should "not allow you to remove tags" do
@post.update(tag_string: "aaa")
assert_equal(["You must have an account at least 1 week old to remove tags"], @post.errors.full_messages)
end
should "allow you to remove request tags" do
@post.update(tag_string: "aaa bbb ccc ddd")
@post.reload
assert_equal("aaa bbb ccc ddd", @post.tag_string)
end
end
context "with a banned artist" do
setup do
CurrentUser.scoped(FactoryBot.create(:admin_user)) do