public
Created

  • Download Gist
gistfile1.feature
Cucumber
1 2 3 4 5 6
Given /^I (.*) the (\d+)rd location$/ do |action, pos|
visit(locations_path)
within("ul li:nth-child(#{pos.to_i})") do
click_link(action)
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.