mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix Lint/DuplicateMethods (#24746)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class FakeLogger
|
||||
attr_reader :debug, :infos, :warnings, :errors, :fatals
|
||||
attr_reader :debugs, :infos, :warnings, :errors, :fatals
|
||||
attr_accessor :level
|
||||
|
||||
def initialize
|
||||
@debug = []
|
||||
@debugs = []
|
||||
@infos = []
|
||||
@warnings = []
|
||||
@errors = []
|
||||
@@ -14,7 +14,7 @@ class FakeLogger
|
||||
end
|
||||
|
||||
def debug(message)
|
||||
@debug << message
|
||||
@debugs << message
|
||||
end
|
||||
|
||||
def debug?
|
||||
|
||||
@@ -39,12 +39,6 @@ module PageObjects
|
||||
expect(categories.map(&:text)).to eq(category_names)
|
||||
end
|
||||
|
||||
def has_checkbox?(category, disabled: false)
|
||||
has_selector?(
|
||||
".sidebar-categories-form .sidebar-categories-form__category-row[data-category-id='#{category.id}'] .sidebar-categories-form__input#{disabled ? "[disabled]" : ""}",
|
||||
)
|
||||
end
|
||||
|
||||
def toggle_category_checkbox(category)
|
||||
find(
|
||||
".sidebar-categories-form .sidebar-categories-form__category-row[data-category-id='#{category.id}'] .sidebar-categories-form__input",
|
||||
|
||||
Reference in New Issue
Block a user