Sha256: 9197c0a6212fa4fedbf3aae2a368b9cc3acde8259630b4ec50f9e49fead225d3

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module ActiveAdmin
    module Finders
      module AttributesTable
        # @param model_name [Class<Object>, nil] model name or class.
        # @param record_id [String, Numeric, nil]
        # @yield within attributes table
        def within_attributes_table_for(model_name, record_id = nil)
          selector = attributes_table_selector(model_name, record_id)
          within(selector) { yield }
        end

        def within_attribute_row(label)
          selector = attributes_row_selector(label)
          within(selector) { yield }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara_active_admin-0.3.1 lib/capybara/active_admin/finders/attributes_table.rb