Module: Capybara::ActiveAdmin::Matchers::Table
- Included in:
- Capybara::ActiveAdmin::Matchers
- Defined in:
- lib/capybara/active_admin/matchers/table.rb
Instance Method Summary collapse
- #have_table(options = {}) ⇒ Object
- #have_table_cell(options = {}) ⇒ Object
- #have_table_row(options = {}) ⇒ Object
Instance Method Details
#have_table(options = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/capybara/active_admin/matchers/table.rb', line 14 def have_table( = {}) resource_name = .delete(:resource_name) selector = table_selector(resource_name) have_selector(selector, ) end |
#have_table_cell(options = {}) ⇒ Object
50 51 52 53 54 55 |
# File 'lib/capybara/active_admin/matchers/table.rb', line 50 def have_table_cell( = {}) column = .delete(:column) selector = table_cell_selector(column) have_selector(selector, ) end |
#have_table_row(options = {}) ⇒ Object
30 31 32 33 34 |
# File 'lib/capybara/active_admin/matchers/table.rb', line 30 def have_table_row( = {}) row_id = .delete(:id) selector = table_row_selector(row_id) have_selector(selector, ) end |