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

Version Path
voluntary-0.7.1 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.7.1 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.7.0 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.7.0 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.6.0 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.6.0 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.2 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.2 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.1 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.1 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.0 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.5.0 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.4.0 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.4.0 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.3.0 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.3.0 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.2.4 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.2.4 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb
voluntary-0.2.3 lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb
voluntary-0.2.3 lib/generators/voluntary/product_dummy/templates/features/step_definitions/resources_steps.rb