Skip to content

Instantly share code, notes, and snippets.

@jschumann
Created March 2, 2015 18:48
Show Gist options
  • Select an option

  • Save jschumann/157279a70a0e5276f235 to your computer and use it in GitHub Desktop.

Select an option

Save jschumann/157279a70a0e5276f235 to your computer and use it in GitHub Desktop.
RSpec, Cucumber, Capybara examples
When /^I fill in "([^"]*)" with "([^"]*)"$/ do |element, text|
fill_in element, with: text
end
When /^I click "([^"]*)"$/ do |element|
click_on element
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment