Skip to content

Instantly share code, notes, and snippets.

View railsagile's full-sized avatar

Quintonic railsagile

View GitHub Profile
Capybara.add_selector :record do
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) }
match { |record| record.is_a?(ActiveRecord::Base) }
end