Remove unused tag subscription code (#2956, #3206).

This commit is contained in:
evazion
2017-07-13 13:44:26 -05:00
parent d3d4e3cc8d
commit 3e3844a796
15 changed files with 4 additions and 365 deletions

View File

@@ -2019,14 +2019,6 @@ class PostTest < ActiveSupport::TestCase
# assert_equal(1, Post.tag_match("pixiv_novel_id:2156088").count)
# end
should "return posts for a tag subscription search" do
post1 = FactoryGirl.create(:post, :tag_string => "aaa")
sub = FactoryGirl.create(:tag_subscription, :tag_query => "aaa", :name => "zzz")
TagSubscription.process_all
relation = Post.tag_match("sub:#{CurrentUser.name}")
assert_equal(1, relation.count)
end
should "return posts for a search:<category> metatag" do
post1 = FactoryGirl.create(:post, tag_string: "aaa")
post2 = FactoryGirl.create(:post, tag_string: "bbb")