Sha256: 556b1310186c2efb58b748d9685de784428c8838b2bd4c17c193a9f9d128aa05

Contents?: true

Size: 555 Bytes

Versions: 6

Compression:

Stored size: 555 Bytes

Contents

When(/^I sleep for ([^"]*) second[s]?$/) do |time|
  sleep(time.to_i)
end

When(/^I output the page source$/) do
  puts source
end

When(/^I fill in the following checkboxes with categories:$/) do |permissions_table|
  permissions_table.hashes.each do |perm|
    And %{I check "permission_#{perm['category']}_#{perm['permission']}"} 
  end
end

When(/^I debug$/) do
  # only works if you include the ruby-debug gem
  debugger
end

Then /^I should see a span with the title "([^"]*)"$/ do |title|
  page.should have_xpath("//span[@title='#{title}']")
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devisable-0.2.1 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb
devisable-0.2.0 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb
devisable-0.1.3 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb
devisable-0.1.2 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb
devisable-0.1.1 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb
devisable-0.1.0 lib/generators/devisable/templates/cucumber/step_definitions/generic_steps.rb