class Capybara::RackTest::Node
def set_checkbox(value) # rubocop:disable Naming/AccessorMethodName
def set_checkbox(value) # rubocop:disable Naming/AccessorMethodName if value && !native['checked'] native['checked'] = 'checked' elsif !value && native['checked'] native.remove_attribute('checked') end end