Advertisement
saasbook

example_step_3.rb

Jan 10th, 2012
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. When /^(?:|I )fill in "([^"]*)" with "([^"]*)"(?: within "([^"]*)")?$/ do |field, value, selector|
  2.  with_scope(selector) do
  3.    fill_in(field, :with => value)
  4.  end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement