Module: Capybara::ActiveAdmin::Matchers::AttributesTable
- Included in:
- Capybara::ActiveAdmin::Matchers
- Defined in:
- lib/capybara/active_admin/matchers/attributes_table.rb
Instance Method Summary collapse
Instance Method Details
#have_attribute_row(label, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/capybara/active_admin/matchers/attributes_table.rb', line 14 def have_attribute_row(label, = {}) selector = attributes_row_selector(label) have_selector(selector, ) end |
#have_attributes_table(options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/capybara/active_admin/matchers/attributes_table.rb', line 7 def have_attributes_table( = {}) model = .delete(:model) id = .delete(:id) selector = attributes_table_selector(model: model, id: id) have_selector(selector, ) end |