fix specs
This commit is contained in:
@@ -127,7 +127,7 @@ module Sources
|
||||
end
|
||||
|
||||
def normalizable_for_artist_finder?
|
||||
illust_id.present? || novel_id.present? || fanbox_id.present?
|
||||
illust_id.present? || novel_id.present? || fanbox_id.present? || fanbox_account_id.present?
|
||||
end
|
||||
|
||||
def unique_id
|
||||
@@ -219,7 +219,7 @@ module Sources
|
||||
end
|
||||
end
|
||||
|
||||
raise Sources::Error.new("Couldn't get illust ID from URL (#{url}, #{referer_url})")
|
||||
return nil
|
||||
end
|
||||
memoize :illust_id
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ module TagAutocomplete
|
||||
search_exact(query, 3) +
|
||||
search_prefix(query, 3) +
|
||||
search_fuzzy(query, 3) +
|
||||
search_aliases(query, 10)
|
||||
search_aliases(query, 3)
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ class TagImplication < TagRelationship
|
||||
validate :consequent_is_not_aliased
|
||||
validate :antecedent_and_consequent_are_different
|
||||
validate :wiki_pages_present, :on => :create
|
||||
scope :expired, ->{where("created_at < ?", 2.months.ago)}
|
||||
scope :old, ->{where("created_at between ? and ?", 2.months.ago, 1.month.ago)}
|
||||
scope :pending, ->{where(status: "pending")}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user