Skip to content

Instantly share code, notes, and snippets.

=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@arne-s
arne-s / for_loop_2.rb
Created February 23, 2013 23:42 — forked from coderberry/for_loop_2.rb
CoffeeScript: For loop
# Nested loops
for x in (1..10) do
for y in (1..10) do
puts x * y
end
end
# Nested loops with mixed data
for x in (1..10) do
for letter in "A".."Z" do