models: drop various unused #named methods.

This commit is contained in:
evazion
2019-08-15 19:18:19 -05:00
parent 0d7d2cac80
commit bb157f5d5b
7 changed files with 5 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ class RelatedTagQueryTest < ActiveSupport::TestCase
context "for a tag that already exists" do
setup do
Tag.named("aaa").first.update_related
Tag.find_by_name("aaa").update_related
@query = RelatedTagQuery.new(query: "aaa")
end
@@ -60,7 +60,7 @@ class RelatedTagQueryTest < ActiveSupport::TestCase
@wp = FactoryBot.create(:wiki_page, title: "aaa", body: "blah [[foo|blah]] [[FOO]] [[bar]] blah")
@query = RelatedTagQuery.new(query: "xyz")
Tag.named("aaa").first.update_related
Tag.find_by_name("aaa").update_related
end
should "take wiki tags from the consequent's wiki" do