Sha256: 978cc3e05c09c14623273785d366e86cfb1f0d97c8ab749a83b0927c2c427025
Contents?: true
Size: 326 Bytes
Versions: 41
Compression:
Stored size: 326 Bytes
Contents
When /^I delete the (\d+)(?:st|nd|rd|th) "([^\"]*)"$/ do |pos, resource_name| visit eval("#{resource_name.pluralize}_path") within(:row, pos.to_i) { find(:xpath, ".//a[contains(text(), 'Actions')]").click } page.execute_script 'window.confirm = function () { return true }' click_link I18n.t('general.destroy') end
Version data entries
41 entries across 21 versions & 1 rubygems