Skip to content

Instantly share code, notes, and snippets.

Renan Martins nbkhope

  • United States
Block or report user

Report or block nbkhope

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View capybara cheat sheet
=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')
View gist:57027169a5ff83485ebf
# Example Code
# For blog entry about Ruby Arrays and Hashes
# Ruby Arrays #
# define an array with three elements
my_friends = ["James", "Ana", "David"]
# Displays the number of elements in the array (how many friends do I have?)
puts my_friends.length
You can’t perform that action at this time.