module Capybara::ActiveAdmin::Matchers::AttributesTable

Public Instance Methods

have_attribute_row(label, options = {}) click to toggle source
# File lib/capybara/active_admin/matchers/attributes_table.rb, line 14
def have_attribute_row(label, options = {})
  selector = attributes_row_selector(label)
  have_selector(selector, options)
end
have_attributes_table(options = {}) click to toggle source
# File lib/capybara/active_admin/matchers/attributes_table.rb, line 7
def have_attributes_table(options = {})
  model = options.delete(:model)
  id = options.delete(:id)
  selector = attributes_table_selector(model: model, id: id)
  have_selector(selector, options)
end